mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-19 16:29:31 +00:00
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:
parent
143e1d1a0d
commit
417751f796
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user