Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions EEPROMex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ int EEPROMClassEx::getAddress(int noOfBytes){
* Check if EEPROM memory is ready to be accessed
*/
bool EEPROMClassEx::isReady() {
#if defined(ARDUINO_ARCH_MEGAAVR) //work around a bug in <avr/eeprom.h>
return bit_is_clear(NVMCTRL.STATUS,NVMCTRL_EEBUSY_bp);
#else
return eeprom_is_ready();
#endif
}

/**
Expand Down