mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 08:48:26 +02:00
atusb/fw/usb/dfu.c (config_descriptor): correct alt settings off-by-one error
This commit is contained in:
parent
f1e689eaa6
commit
b51d442c31
@ -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
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user