From 417751f7968ae5c2b477aae793c1ae0a1e4cb8ef 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