Merge pull request #1230 from mkbel/improve_erase_EEPROM
PFW-608 Decrease wear of mass erase EEPROM and do it faster.
This commit is contained in:
commit
d79025de58
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
||||||
|
|
||||||
// Erase EEPROM
|
// Erase EEPROM
|
||||||
for (int i = 0; i < 4096; i++) {
|
for (int i = 0; i < 4096; i++) {
|
||||||
eeprom_write_byte((uint8_t*)i, 0xFF);
|
eeprom_update_byte((uint8_t*)i, 0xFF);
|
||||||
|
|
||||||
if (i % 41 == 0) {
|
if (i % 41 == 0) {
|
||||||
er_progress++;
|
er_progress++;
|
||||||
|
|
Loading…
Reference in a new issue