# HG changeset patch # User Ideenmodellierer # Date 1675355754 -3600 # Node ID 6a35e2e97bfb8901898745dde298ab9b1752290e # Parent 5078da3845c0a4ac8bdf3da58f085ee25241f07c Added button lock after wakeup in surface mode: During setup of diveequipment the OSTC4 is sometimes operated unintended (e.g. while equipping the jaket). To avoid this it is now possible to activate a button lock in the button lock sensitivity menu. The OSTC4 will then wakeup as usuall but if the diver wants to oerate the menus he has to press the buttons in a certain order. The button to be pressed is indicated by a blue bar. The button lock is deactivated in dive mode. diff -r 5078da3845c0 -r 6a35e2e97bfb Common/Inc/settings.h --- a/Common/Inc/settings.h Thu Feb 02 17:35:38 2023 +0100 +++ b/Common/Inc/settings.h Thu Feb 02 17:35:54 2023 +0100 @@ -85,7 +85,7 @@ #define UART_MAX_PROTOCOL (2u) -#define FUTURE_SPARE_SIZE (5u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ +#define FUTURE_SPARE_SIZE (4u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ typedef enum { @@ -235,6 +235,7 @@ uint8_t scubberActiveId; /* redefined in 0xFFFF0023 */ SScrubberData scrubberData[2]; uint8_t ext_sensor_map[5]; + uint8_t buttonLockActive; /* redefined in 0xFFFF0025 */ uint8_t Future_SPARE[FUTURE_SPARE_SIZE]; /* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/ // new in 0xFFFF0006 uint8_t ppo2sensors_deactivated;