Skip to content

Commit

Permalink
LIS3DH (WisMesh Pocket) - Honor Wake On Tap Or Motion
Browse files Browse the repository at this point in the history
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 #5579
  • Loading branch information
fifieldt committed Dec 23, 2024
1 parent 143e1d1 commit 417751f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/motion/LIS3DHSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -34,4 +34,4 @@ int32_t LIS3DHSensor::runOnce()
return MOTION_SENSOR_CHECK_INTERVAL_MS;
}

#endif
#endif

0 comments on commit 417751f

Please sign in to comment.