Merge pull request #2422 from kasjer/kasjer/audio_device-fix-unused-param-warning

audio_device: Fix unused variable warning
This commit is contained in:
HiFiPhile 2024-01-23 15:09:25 +01:00 committed by GitHub
commit f92c2c2758
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1729,7 +1729,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
// Find correct interface // 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 (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; uint8_t const * p_desc_parse_for_params = p_desc;
#endif #endif
// From this point forward follow the EP descriptors associated to the current alternate setting interface - Open EPs if necessary // From this point forward follow the EP descriptors associated to the current alternate setting interface - Open EPs if necessary