Skip to content

Commit a209440

Browse files
committed
Added ready function.
1 parent acbd8bc commit a209440

File tree

1 file changed

+4
-1
lines changed
  • hardware/arduino/avr/libraries/EEPROM/src

1 file changed

+4
-1
lines changed

hardware/arduino/avr/libraries/EEPROM/src/EEPROM.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ struct EEPROMClass{
128128
EEPtr begin() { return 0x00; }
129129
EEPtr end() { return length(); } //Standards requires this to be the item after the last valid entry. The returned pointer is invalid.
130130
uint16_t length() { return E2END + 1; }
131-
131+
132+
//A helper function for the builtin eeprom_is_ready macro.
133+
bool ready() { return eeprom_is_ready(); }
134+
132135
//Functionality to 'get' and 'put' objects to and from EEPROM.
133136
template< typename T > T &get( EEPtr ptr, T &t ){
134137
uint8_t *dest = (uint8_t*) &t;

0 commit comments

Comments
 (0)