Tidy up AUDIO_CLASS_FALLBACK usage

This commit is contained in:
Ross Owen
2018-06-04 10:36:27 +01:00
committed by GitHub
parent a8b03de538
commit 09b1cdf610

View File

@@ -260,7 +260,7 @@
#endif
/* Some checks on full-speed functionality */
#if defined(FULL_SPEED_AUDIO_2) && (AUDIO_CLASS_FALLBACK != 0)
#if defined(FULL_SPEED_AUDIO_2) && (AUDIO_CLASS_FALLBACK)
#error FULL_SPEED_AUDIO_2 and AUDIO_CLASS_FALLBACK enabled!
#endif
@@ -494,7 +494,7 @@
*
* Default: 0x0003
*/
#if (AUDIO_CLASS == 1) || (AUDIO_CLASS_FALLBACK != 0) || defined(__DOXYGEN__)
#if (AUDIO_CLASS == 1) || (AUDIO_CLASS_FALLBACK) || defined(__DOXYGEN__)
#ifndef PID_AUDIO_1
#define PID_AUDIO_1 (0x0003)
#endif