mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-04 07:35:29 +00:00
Saw double-taps getting missed with latched LIR so moving back to pulsed
This commit is contained in:
committed by
Alessandro Genova
parent
dd054efe8d
commit
359bf0df69
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user