comparison 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
comparison
equal deleted inserted replaced
426:514e6269256f 427:b1091e183d52
270 void tMenuEdit_writeSettingsToFlash(void) 270 void tMenuEdit_writeSettingsToFlash(void)
271 { 271 {
272 if(WriteSettings) 272 if(WriteSettings)
273 { 273 {
274 GFX_logoAutoOff(); 274 GFX_logoAutoOff();
275 ext_flash_write_settings(); 275 ext_flash_write_settings(0);
276 WriteSettings = 0; 276 WriteSettings = 0;
277 } 277 }
278 } 278 }
279 279
280 void helperLeaveMenuEditField(uint8_t idID) 280 void helperLeaveMenuEditField(uint8_t idID)