diff options
| author | Reinhard Panhuber <[email protected]> | 2021-04-03 15:29:39 +0200 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2021-04-03 15:29:39 +0200 |
| commit | 6236effb1415ea509e6283d33f2779eeae7d425e (patch) | |
| tree | 857e975886d68e0e477a8f9217d999499f58b6a7 /src/class | |
| parent | 8b90c08b357ce04aebe093856b954e02624ff0fe (diff) | |
Fix #define error in audio_device.h
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/audio/audio_device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h index 9ff74d6c7..e2208629f 100644 --- a/src/class/audio/audio_device.h +++ b/src/class/audio/audio_device.h @@ -149,6 +149,7 @@ #define CFG_TUD_AUDIO_FUNC_3_EP_OUT_SW_BUF_SZ 0 #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 #error EP software buffer size MUST BE at least as big as maximum EP size #endif @@ -164,7 +165,9 @@ #error EP software buffer size MUST BE at least as big as maximum EP size #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 #error EP software buffer size MUST BE at least as big as maximum EP size #endif @@ -180,6 +183,7 @@ #error EP software buffer size MUST BE at least as big as maximum EP size #endif #endif +#endif // Enable/disable feedback EP (required for asynchronous RX applications) #ifndef CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP |
