diff --git a/firmware/apps/dfu/main.c b/firmware/apps/dfu/main.c index 578f2f2f..3d55fdc6 100644 --- a/firmware/apps/dfu/main.c +++ b/firmware/apps/dfu/main.c @@ -31,6 +31,7 @@ int USBDFU_handle_dnload(uint8_t altif, unsigned int offset, uint8_t *data, unsigned int len) { uint32_t addr; + unsigned int i; int rc; /* address of the last allocated variable on the stack */ uint32_t stack_addr = (uint32_t)&rc; @@ -70,7 +71,7 @@ int USBDFU_handle_dnload(uint8_t altif, unsigned int offset, /* FIXME: set error codes */ return DFU_RET_STALL; } - for (unsigned int i=0; i