Closed GoogleCodeExporter closed 9 years ago
This should be easy to fix. Change it to read:
#if defined(EEPE)
while(bit_is_set(EECR,EEPE)); //Wait for previous EEPROM writes to complete
#else
while(bit_is_set(EECR,EEWE)); //Wait for previous EEPROM writes to complete
#endif
While you're at it, this should probably be changed too:
#if defined(SPMCSR)
: "=m" (SPMCSR) : "M" (PAGE_SIZE) : "r0","r16","r17","r24","r25","r28","r29","r30","r31"
#else
: "=m" (SPMCR) : "M" (PAGE_SIZE) : "r0","r16","r17","r24","r25","r28","r29","r30","r31"
#endif
This way when new devices are added these don't need to be changed yet again.
Original comment by walker...@gmail.com
on 8 Jun 2010 at 10:53
fixed in
https://github.com/arduino/Arduino/commit/8f5ca0a943be1ca6d72b04ab264fdf9abd50eb
fb
Original comment by c.mag...@arduino.cc
on 14 Jul 2015 at 2:29
Original issue reported on code.google.com by
madworm_...@spitzenpfeil.org
on 7 Dec 2009 at 11:06