PFW-608 Decrease wear of mass erase EEPROM and do it faster.
This commit is contained in:
parent
d2aa13d333
commit
c77672bf0f
|
|
@ -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 New Issue