diff Discovery/Src/tMenuEdit.c @ 427:b1091e183d52 ImprovmentNVM_2

Activated ringbuffer for settings: In previous versions the settings have always been writte to the ring start address causing additional ~200ms for sector erase. The settings are now continously written (~8ms). At shutdown the settings are written to ring start for compability reasons. In case of a reset the SW will scan the ringbuffer for the latest available block and restore it.
author ideenmodellierer
date Sun, 16 Feb 2020 22:04:52 +0100
parents 2bb1db22b5f5
children 21bf40bb8151
line wrap: on
line diff
--- a/Discovery/Src/tMenuEdit.c	Sat Feb 15 20:50:58 2020 +0100
+++ b/Discovery/Src/tMenuEdit.c	Sun Feb 16 22:04:52 2020 +0100
@@ -272,7 +272,7 @@
     if(WriteSettings)
     {
         GFX_logoAutoOff();
-        ext_flash_write_settings();
+        ext_flash_write_settings(0);
         WriteSettings = 0;
     }
 }