diff --git a/src/selfmain.c b/src/selfmain.c index a9f5789e..5513fe86 100644 --- a/src/selfmain.c +++ b/src/selfmain.c @@ -138,10 +138,10 @@ int main(void) { NVMCTRL->CTRLA.bit.CACHEDIS1 = true; #endif - const uint8_t *ptr = bootloader; int i; #ifdef SAMD21 + const uint8_t *ptr = bootloader; for (i = 0; i < BOOTLOADER_K; ++i) { int crc = 0; for (int j = 0; j < 1024; ++j) {