summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-02-12 11:34:32 +0700
committerhathach <[email protected]>2025-02-12 11:34:32 +0700
commit85247e50ddc17347fca1f6c9b9fedb1227eda25f (patch)
tree5828430e5ebfd32fbaf0c7e4cb7a1b39fdd6f04e /src/device
parent87adc63226a59e6c2602b1bc453ced77d44fedba (diff)
clean up
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 20f803563..faf926855 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1032,14 +1032,13 @@ static bool process_set_config(uint8_t rhport, uint8_t cfg_num)
#endif
#if CFG_TUD_MIDI
- if ( driver->open == midid_open )
- {
- // If there is a class-compliant Audio Control Class, then 2 interfaces
- // Otherwise, only one
+ if (driver->open == midid_open) {
+ // If there is a class-compliant Audio Control Class, then 2 interfaces. Otherwise, only one
if (TUSB_CLASS_AUDIO == desc_itf->bInterfaceClass &&
- AUDIO_SUBCLASS_CONTROL == desc_itf->bInterfaceSubClass &&
- AUDIO_FUNC_PROTOCOL_CODE_UNDEF == desc_itf->bInterfaceProtocol)
- assoc_itf_count = 2;
+ AUDIO_SUBCLASS_CONTROL == desc_itf->bInterfaceSubClass &&
+ AUDIO_FUNC_PROTOCOL_CODE_UNDEF == desc_itf->bInterfaceProtocol) {
+ assoc_itf_count = 2;
+ }
}
#endif