diff Discovery/Src/base.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 24c1e3367a2e
children
line wrap: on
line diff
--- a/Discovery/Src/base.c	Sun Feb 22 19:56:43 2026 +0100
+++ b/Discovery/Src/base.c	Sun Feb 22 20:00:00 2026 +0100
@@ -1098,6 +1098,10 @@
 	return ret;
 }
 
+void reset_ButtonLock(void)
+{
+	ButtonLockState = LOCK_OFF;
+}
 SButtonLock get_ButtonLock(void)
 {
 	return ButtonLockState;