Skip to content

Commit b4b2fd6

Browse files
authored
LIS3DH (WisMesh Pocket) - Honor Wake On Tap Or Motion (#5625)
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
1 parent 143e1d1 commit b4b2fd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/motion/LIS3DHSensor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int32_t LIS3DHSensor::runOnce()
2222
{
2323
if (sensor.getClick() > 0) {
2424
uint8_t click = sensor.getClick();
25-
if (!config.device.double_tap_as_button_press) {
25+
if (!config.device.double_tap_as_button_press && config.display.wake_on_tap_or_motion) {
2626
wakeScreen();
2727
}
2828

@@ -34,4 +34,4 @@ int32_t LIS3DHSensor::runOnce()
3434
return MOTION_SENSOR_CHECK_INTERVAL_MS;
3535
}
3636

37-
#endif
37+
#endif

0 commit comments

Comments
 (0)