# HG changeset patch # User Ideenmodellierer # Date 1761591987 -3600 # Node ID 7efc8baa3ffa5885f40ed978d11da56b7b15fcdb # Parent 93c98a28406c400df17c592cf5fd150062a80716 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. diff -r 93c98a28406c -r 7efc8baa3ffa Discovery/Src/base.c --- 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 */