diff --git a/module_usb_audio/endpoint0/descriptors.h b/module_usb_audio/endpoint0/descriptors.h index 1f9d50d2..9ca20afc 100644 --- a/module_usb_audio/endpoint0/descriptors.h +++ b/module_usb_audio/endpoint0/descriptors.h @@ -262,7 +262,7 @@ StringDescTable_t g_strTable = #else .outputChanStr_4 = "S/PDIF 1", #endif -#elif defined(SPDIF) && (SPDIF_TX_INDEX == 2 +#elif defined(SPDIF) && (SPDIF_TX_INDEX == 2) #if(SPDIF_TX_INDEX < I2S_CHANS_DAC) .outputChanStr_4 = "Analogue 4/SPDIF 2", #else @@ -1623,9 +1623,8 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2= #endif #ifdef DFU - { /* Standard DFU class Interface descriptor */ - 0x09, /* 0 bLength : Size of this descriptor, in bytes. (field size 1 bytes) */ + {0x09, /* 0 bLength : Size of this descriptor, in bytes. (field size 1 bytes) */ 0x04, /* 1 bDescriptorType : INTERFACE descriptor. (field size 1 bytes) */ (INPUT_INTERFACES+OUTPUT_INTERFACES+MIDI_INTERFACES+1), /* 2 bInterfaceNumber : Index of this interface. (field size 1 bytes) */ 0x00, /* 3 bAlternateSetting : Index of this setting. (field size 1 bytes) */ @@ -1654,8 +1653,7 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2= 0x40, /* 5 wTransferSize */ 0x00, /* 6 wTransferSize */ 0x10, /* 7 bcdDFUVersion */ - 0x01, /* 7 bcdDFUVersion */ - } + 0x01}, /* 7 bcdDFUVersion */ #endif #endif