diff Discovery/Src/base.c @ 1042:7efc8baa3ffa GasConsumption

Reset timeout after Bluetooth disconnect: The counter triggering the shutdown for the OSTC was not reseted after closing the Bluetooth connection. As result an unintendet shutdown could happen. To avoid this the counter is now reseted during disconnection.
author Ideenmodellierer
date Mon, 27 Oct 2025 20:06:27 +0100
parents 2af07aa38531
children b018e1f3082e
line wrap: on
line diff
--- a/Discovery/Src/base.c	Thu Oct 16 19:55:35 2025 +0200
+++ b/Discovery/Src/base.c	Mon Oct 27 20:06:27 2025 +0100
@@ -512,6 +512,7 @@
             createDiveSettings();
             updateMenu();
             ext_flash_write_settings(EF_SETTINGS,0);
+            time_without_button_pressed_deciseconds = 0;	/* reset timeout to avoid shutdown after long time in Comm state */
         }
 
         /* check if tasks depending on global state are pending */