Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1041:93c98a28406c | 1042:7efc8baa3ffa |
|---|---|
| 510 if( tComm_control() )// will stop while loop if tComm Mode started until exit from UART | 510 if( tComm_control() )// will stop while loop if tComm Mode started until exit from UART |
| 511 { | 511 { |
| 512 createDiveSettings(); | 512 createDiveSettings(); |
| 513 updateMenu(); | 513 updateMenu(); |
| 514 ext_flash_write_settings(EF_SETTINGS,0); | 514 ext_flash_write_settings(EF_SETTINGS,0); |
| 515 time_without_button_pressed_deciseconds = 0; /* reset timeout to avoid shutdown after long time in Comm state */ | |
| 515 } | 516 } |
| 516 | 517 |
| 517 /* check if tasks depending on global state are pending */ | 518 /* check if tasks depending on global state are pending */ |
| 518 get_globalStateList(&status); | 519 get_globalStateList(&status); |
| 519 if(status.base == BaseHome) | 520 if(status.base == BaseHome) |
