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
This commit is contained in:
Tom Fifield 2024-12-21 10:53:14 +11:00
parent 143e1d1a0d
commit 417751f796

View File

@ -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
#endif