]> git.earman.xyz Git - sensor-watch.git/commitdiff
Saw double-taps getting missed with latched LIR so moving back to pulsed
authorDavid Volovskiy <devolov@gmail.com>
Sun, 16 Nov 2025 21:06:08 +0000 (16:06 -0500)
committerAlessandro Genova <ales.genova@gmail.com>
Sat, 3 Jan 2026 01:07:56 +0000 (20:07 -0500)
movement.c

index a3a61233d86a9fe8ed1c3946ebaa603fc466388b..361c8c896ac62f9a454b4146d059b1018fffa949 100644 (file)
@@ -816,7 +816,6 @@ bool movement_enable_tap_detection_if_available(void) {
         lis2dw_set_data_rate(LIS2DW_DATA_RATE_HP_400_HZ);
         lis2dw_set_mode(LIS2DW_MODE_LOW_POWER);
         lis2dw_enable_double_tap();
-        lis2dw12_int_notification_set(LIS2DW12_INT_LATCHED);
 
         // Settling time (1 sample duration, i.e. 1/400Hz)
         delay_ms(3);
@@ -837,7 +836,6 @@ bool movement_disable_tap_detection_if_available(void) {
         lis2dw_set_data_rate(movement_state.accelerometer_background_rate);
         lis2dw_set_mode(LIS2DW_MODE_LOW_POWER);
         lis2dw_disable_double_tap();
-        lis2dw12_int_notification_set(LIS2DW12_INT_PULSED);
         // ...disable Z axis (not sure if this is needed, does this save power?)...
         lis2dw_configure_tap_threshold(0, 0, 0, 0);