From e29079225e44ebdd5b70f3b8ecc87942130a4f42 Mon Sep 17 00:00:00 2001 From: leomil72 Date: Sun, 9 Jun 2013 17:50:44 +0300 Subject: [PATCH] Update EEPROM.cpp Using eeprom_update_byte the code won't write on the EEPROM cell if it already contains the value that the user wants to write into it. --- libraries/EEPROM/EEPROM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/EEPROM/EEPROM.cpp b/libraries/EEPROM/EEPROM.cpp index dfa1deb5606..f46a1b44c7b 100755 --- a/libraries/EEPROM/EEPROM.cpp +++ b/libraries/EEPROM/EEPROM.cpp @@ -44,7 +44,7 @@ uint8_t EEPROMClass::read(int address) void EEPROMClass::write(int address, uint8_t value) { - eeprom_write_byte((unsigned char *) address, value); + eeprom_update_byte((unsigned char *) address, value); } EEPROMClass EEPROM;