We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25e6420 commit 8416a2cCopy full SHA for 8416a2c
bootloaders/atmega/ATmegaBOOT_168.c
@@ -578,7 +578,7 @@ int main(void)
578
/* if ((length.byte[0] & 0x01) == 0x01) length.word++; //Even up an odd number of bytes */
579
if ((length.byte[0] & 0x01)) length.word++; //Even up an odd number of bytes
580
cli(); //Disable interrupts, just to be sure
581
-#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__)
+#if defined(EEPE)
582
while(bit_is_set(EECR,EEPE)); //Wait for previous EEPROM writes to complete
583
#else
584
while(bit_is_set(EECR,EEWE)); //Wait for previous EEPROM writes to complete
0 commit comments