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:
PavelSindler 2018-10-08 10:14:22 +02:00 committed by GitHub
commit d79025de58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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++;