1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 18:57:11 +02:00

atusb/fw/usb/dfu.c (config_descriptor): correct alt settings off-by-one error

This commit is contained in:
Werner Almesberger 2014-10-23 02:06:55 -03:00
parent f1e689eaa6
commit b51d442c31

View File

@ -95,10 +95,10 @@ const uint8_t config_descriptor[] = {
/* Interface #0 */ /* Interface #0 */
DFU_ITF_DESCR(0, 0, dfu_proto_dfu, DFU_ALT_NAME_0_IDX) DFU_ITF_DESCR(0, 0, dfu_proto_dfu, DFU_ALT_NAME_0_IDX)
#if DFU_ALT_SETTINGS >= 1 #if DFU_ALT_SETTINGS > 1
DFU_ITF_DESCR(0, 1, dfu_proto_dfu, DFU_ALT_NAME_1_IDX) DFU_ITF_DESCR(0, 1, dfu_proto_dfu, DFU_ALT_NAME_1_IDX)
#endif #endif
#if DFU_ALT_SETTINGS >= 2 #if DFU_ALT_SETTINGS > 2
DFU_ITF_DESCR(0, 2, dfu_proto_dfu, DFU_ALT_NAME_2_IDX) DFU_ITF_DESCR(0, 2, dfu_proto_dfu, DFU_ALT_NAME_2_IDX)
#endif #endif
}; };