diff --git a/atusb/fw/usb/dfu.c b/atusb/fw/usb/dfu.c index b15891c..28b1a69 100644 --- a/atusb/fw/usb/dfu.c +++ b/atusb/fw/usb/dfu.c @@ -95,10 +95,10 @@ const uint8_t config_descriptor[] = { /* Interface #0 */ 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) #endif -#if DFU_ALT_SETTINGS >= 2 +#if DFU_ALT_SETTINGS > 2 DFU_ITF_DESCR(0, 2, dfu_proto_dfu, DFU_ALT_NAME_2_IDX) #endif };