diff 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
line wrap: on
line diff
--- a/Discovery/Src/tComm.c	Sun Feb 22 19:56:43 2026 +0100
+++ b/Discovery/Src/tComm.c	Sun Feb 22 20:00:00 2026 +0100
@@ -234,7 +234,10 @@
 		{
 				UartReady = RESET;
 				if((receiveStartByteUart == BYTE_DOWNLOAD_MODE) || (receiveStartByteUart == BYTE_SERVICE_MODE))
+				{
 					answer = openComm(receiveStartByteUart);
+					reset_ButtonLock();
+				}
 				StartListeningToUART = 1;
 				return answer;
 		}