changeset 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 93c98a28406c
children 52fd91414b6c
files Discovery/Src/base.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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 */