diff options
| author | HiFiPhile <[email protected]> | 2024-01-23 15:09:25 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-23 15:09:25 +0100 |
| commit | f92c2c2758e47c1dd9a0e441f1a48188171ae403 (patch) | |
| tree | 3a1a3bc090311e367bcb8cb2c619b8382e7f91a0 /src/class | |
| parent | 57bbf3ad2baf4e47ed2a501e80cf975f2dcafad1 (diff) | |
| parent | 1c9a839401cb7323f93202f600c6f3148100e10a (diff) | |
Merge pull request #2422 from kasjer/kasjer/audio_device-fix-unused-param-warning
audio_device: Fix unused variable warning
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/audio/audio_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c index d438d0715..4adc558a6 100644 --- a/src/class/audio/audio_device.c +++ b/src/class/audio/audio_device.c @@ -1729,7 +1729,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const * // Find correct interface if (tu_desc_type(p_desc) == TUSB_DESC_INTERFACE && ((tusb_desc_interface_t const * )p_desc)->bInterfaceNumber == itf && ((tusb_desc_interface_t const * )p_desc)->bAlternateSetting == alt) { -#if CFG_TUD_AUDIO_ENABLE_ENCODING || CFG_TUD_AUDIO_ENABLE_DECODING || CFG_TUD_AUDIO_EP_IN_FLOW_CONTROL +#if (CFG_TUD_AUDIO_ENABLE_EP_IN && (CFG_TUD_AUDIO_EP_IN_FLOW_CONTROL || CFG_TUD_AUDIO_ENABLE_ENCODING)) || (CFG_TUD_AUDIO_ENABLE_EP_OUT && CFG_TUD_AUDIO_ENABLE_DECODING) uint8_t const * p_desc_parse_for_params = p_desc; #endif // From this point forward follow the EP descriptors associated to the current alternate setting interface - Open EPs if necessary |
