diff Discovery/Src/logbook.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 514e6269256f
children ee1434824c3f
line wrap: on
line diff
--- a/Discovery/Src/logbook.c	Sat Feb 15 20:50:58 2020 +0100
+++ b/Discovery/Src/logbook.c	Sun Feb 16 22:04:52 2020 +0100
@@ -1187,7 +1187,7 @@
 				{
 					pSettings->logbookOffset++;
 				}
-				ext_flash_write_settings();
+				ext_flash_write_settings(0);
 				ext_flash_disable_protection_for_logbook();
 
 				ext_flash_CloseSector();	/* this is just a repair function which invalidates a not used sector in case a log maintenance was called before dive */