Fix #define error in audio_device.h

This commit is contained in:
Reinhard Panhuber 2021-04-03 15:29:39 +02:00
parent 8b90c08b35
commit 6236effb14
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,7 @@
#define CFG_TUD_AUDIO_FUNC_3_EP_OUT_SW_BUF_SZ 0 #define CFG_TUD_AUDIO_FUNC_3_EP_OUT_SW_BUF_SZ 0
#endif #endif
#if CFG_TUD_AUDIO_ENABLE_EP_IN
#if CFG_TUD_AUDIO_FUNC_1_EP_IN_SW_BUF_SZ < CFG_TUD_AUDIO_FUNC_1_EP_IN_SZ_MAX #if CFG_TUD_AUDIO_FUNC_1_EP_IN_SW_BUF_SZ < CFG_TUD_AUDIO_FUNC_1_EP_IN_SZ_MAX
#error EP software buffer size MUST BE at least as big as maximum EP size #error EP software buffer size MUST BE at least as big as maximum EP size
#endif #endif
@ -164,7 +165,9 @@
#error EP software buffer size MUST BE at least as big as maximum EP size #error EP software buffer size MUST BE at least as big as maximum EP size
#endif #endif
#endif #endif
#endif
#if CFG_TUD_AUDIO_ENABLE_EP_OUT
#if CFG_TUD_AUDIO_FUNC_1_EP_OUT_SW_BUF_SZ < CFG_TUD_AUDIO_FUNC_1_EP_OUT_SZ_MAX #if CFG_TUD_AUDIO_FUNC_1_EP_OUT_SW_BUF_SZ < CFG_TUD_AUDIO_FUNC_1_EP_OUT_SZ_MAX
#error EP software buffer size MUST BE at least as big as maximum EP size #error EP software buffer size MUST BE at least as big as maximum EP size
#endif #endif
@ -180,6 +183,7 @@
#error EP software buffer size MUST BE at least as big as maximum EP size #error EP software buffer size MUST BE at least as big as maximum EP size
#endif #endif
#endif #endif
#endif
// Enable/disable feedback EP (required for asynchronous RX applications) // Enable/disable feedback EP (required for asynchronous RX applications)
#ifndef CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP #ifndef CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP