Fixed clock selector string index

This commit is contained in:
Ross Owen
2015-03-20 09:29:25 +00:00
parent f8c703621f
commit d7ad6e7a99

View File

@@ -945,7 +945,7 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
ID_CLKSRC_ADAT, /* baCSourceID */ ID_CLKSRC_ADAT, /* baCSourceID */
#endif #endif
.bmControl = 0x03, .bmControl = 0x03,
.iClockSelector = 13, /* TODO Shoudn't be hard-coded */ .iClockSelector = offsetof(StringDescTable_t, clockSelectorStr)/sizeof(char *),
}, },
#if (NUM_USB_CHAN_OUT > 0) #if (NUM_USB_CHAN_OUT > 0)