From c77672bf0f76daa515067164025defde53a0269c Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 5 Oct 2018 18:11:26 +0200 Subject: [PATCH] PFW-608 Decrease wear of mass erase EEPROM and do it faster. --- Firmware/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index e2afaa64..ccce531a 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -756,7 +756,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE)) // Erase EEPROM 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) { er_progress++;