From 843f837ecacacf1662eb92e74e6e8fb1caa07dd9 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Sat, 21 Dec 2024 10:53:14 +1100 Subject: [PATCH] LIS3DH (WisMesh Pocket) - Honor Wake On Tap Or Motion As reported by @Mason10198, the WisMesh Pocket was always waking on accelerometer motion. This change gates the LIS3DH sensor's call to wakeScreen based on config.display.wake_on_tap_or_motion . fixes https://github.com/meshtastic/firmware/issues/5579 --- src/motion/LIS3DHSensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motion/LIS3DHSensor.cpp b/src/motion/LIS3DHSensor.cpp index f3f5a62d1c..995f74abeb 100755 --- a/src/motion/LIS3DHSensor.cpp +++ b/src/motion/LIS3DHSensor.cpp @@ -22,7 +22,7 @@ int32_t LIS3DHSensor::runOnce() { if (sensor.getClick() > 0) { uint8_t click = sensor.getClick(); - if (!config.device.double_tap_as_button_press) { + if (!config.device.double_tap_as_button_press && config.display.wake_on_tap_or_motion) { wakeScreen(); } @@ -34,4 +34,4 @@ int32_t LIS3DHSensor::runOnce() return MOTION_SENSOR_CHECK_INTERVAL_MS; } -#endif \ No newline at end of file +#endif