comparison Discovery/Src/tComm.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 b241efe09963
children
comparison
equal deleted inserted replaced
1074:ad61a2c9095a 1075:ef99fff2d2de
232 /* Reset transmission flag */ 232 /* Reset transmission flag */
233 if(UartReady == SET) 233 if(UartReady == SET)
234 { 234 {
235 UartReady = RESET; 235 UartReady = RESET;
236 if((receiveStartByteUart == BYTE_DOWNLOAD_MODE) || (receiveStartByteUart == BYTE_SERVICE_MODE)) 236 if((receiveStartByteUart == BYTE_DOWNLOAD_MODE) || (receiveStartByteUart == BYTE_SERVICE_MODE))
237 {
237 answer = openComm(receiveStartByteUart); 238 answer = openComm(receiveStartByteUart);
239 reset_ButtonLock();
240 }
238 StartListeningToUART = 1; 241 StartListeningToUART = 1;
239 return answer; 242 return answer;
240 } 243 }
241 } 244 }
242 return 0; 245 return 0;