Date:2014-10-23 07:06:55 (4 years 10 months ago)
Author:Werner Almesberger
Commit:b51d442c317c76425cac446818ade6ccc43952c4
Message:atusb/fw/usb/dfu.c (config_descriptor): correct alt settings off-by-one error

Files: atusb/fw/usb/dfu.c (1 diff)

Change Details

atusb/fw/usb/dfu.c
9595    /* Interface #0 */
9696
9797    DFU_ITF_DESCR(0, 0, dfu_proto_dfu, DFU_ALT_NAME_0_IDX)
98#if DFU_ALT_SETTINGS >= 1
98#if DFU_ALT_SETTINGS > 1
9999    DFU_ITF_DESCR(0, 1, dfu_proto_dfu, DFU_ALT_NAME_1_IDX)
100100#endif
101#if DFU_ALT_SETTINGS >= 2
101#if DFU_ALT_SETTINGS > 2
102102    DFU_ITF_DESCR(0, 2, dfu_proto_dfu, DFU_ALT_NAME_2_IDX)
103103#endif
104104};

Archive Download the corresponding diff file



interactive