comparison Discovery/Src/tInfoSensor.c @ 1075:ef99fff2d2de Icon_Integration tip

Unlock button lock if BT is connected: In the previous version the button lock coluld only be disabled by following the correct button press order. In case a button does not work (e.g. low button sensitifity) the OSTC would be locked. To avoid such a scenario the button lock is now also removed if the OSTC is connected via Bluetooth
author ideenmodellierer
date Sun, 22 Feb 2026 20:00:00 +0100
parents 734f84b72b30
children
comparison
equal deleted inserted replaced
1074:ad61a2c9095a 1075:ef99fff2d2de
38 38
39 #include <string.h> 39 #include <string.h>
40 #include <inttypes.h> 40 #include <inttypes.h>
41 41
42 extern void openEdit_Sensors(uint8_t filter); 42 extern void openEdit_Sensors(uint8_t filter);
43 uint8_t OnAction_Sensor (uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action);
44 43
45 /* Private variables ---------------------------------------------------------*/ 44 /* Private variables ---------------------------------------------------------*/
46 static uint8_t activeSensorId = 0; 45 static uint8_t activeSensorId = 0;
47 static uint8_t sensorActive = 0; 46 static uint8_t sensorActive = 0;
48 static externalInterfaceSensorType sensorType = SENSOR_NONE; 47 static externalInterfaceSensorType sensorType = SENSOR_NONE;
204 tInfo_write_buttonTextline_simple(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_O2Calib); 203 tInfo_write_buttonTextline_simple(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_O2Calib);
205 } 204 }
206 // =============================================================================== 205 // ===============================================================================
207 void refreshInfo_Sensor(GFX_DrawCfgScreen s) 206 void refreshInfo_Sensor(GFX_DrawCfgScreen s)
208 { 207 {
209 const SDiveState *pStateReal = stateRealGetPointer();
210
211 char text[31]; 208 char text[31];
212 209
213 text[0] = '\001'; 210 text[0] = '\001';
214 text[1] = TXT_Sensor; 211 text[1] = TXT_Sensor;
215 text[2] = ' '; 212 text[2] = ' ';