mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-04 13:25:40 +00:00
Revert "Added print for LIS2DW interrupt"
This reverts commit 0105fee2f176b38e51cd1da8118481b82bdb35ed.
This commit is contained in:
committed by
Alessandro Genova
parent
372992e259
commit
8d551d26af
10
movement.c
10
movement.c
@ -277,20 +277,10 @@ static void _movement_renew_top_of_minute_alarm(void) {
|
||||
movement_volatile_state.schedule_next_comp = true;
|
||||
}
|
||||
|
||||
#define PRINT_LIS_EVENTS false
|
||||
static uint32_t _movement_get_accelerometer_events() {
|
||||
uint32_t accelerometer_events = 0;
|
||||
|
||||
uint8_t int_src = lis2dw_get_interrupt_source();
|
||||
#if PRINT_LIS_EVENTS
|
||||
printf("_movement_get_accelerometer_events\r\n");
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_SLEEP_CHANGE_IA) printf("Sleep Change IA\r\n");
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_6D_IA) printf("6D IA\r\n");
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_SINGLE_TAP) printf("Single Tap\r\n");
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_DOUBLE_TAP) printf("Double Tap\r\n");
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_WU_IA) printf("Wake Up\r\n");
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_FF_IA) printf("Free Fall\r\n");
|
||||
#endif
|
||||
|
||||
if (int_src & LIS2DW_REG_ALL_INT_SRC_DOUBLE_TAP) {
|
||||
accelerometer_events |= 1 << EVENT_DOUBLE_TAP;
|
||||
|
||||
Reference in New Issue
Block a user