From: Joey Castillo Date: Mon, 28 Apr 2025 22:24:14 +0000 (-0400) Subject: accelerometer: disable wake on motion, has awkward user experience X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=ff3b69a38bf2c14ee1dba40fd95c4942c8e85594;p=sensor-watch.git accelerometer: disable wake on motion, has awkward user experience --- diff --git a/movement.c b/movement.c index 160b8ba..6f366b9 100644 --- a/movement.c +++ b/movement.c @@ -746,7 +746,10 @@ void app_setup(void) { // a falling edge on INT2 indicates the accelerometer has woken up. lis2dw_configure_int2(LIS2DW_CTRL5_INT2_SLEEP_STATE | LIS2DW_CTRL5_INT2_SLEEP_CHG); HAL_GPIO_A4_in(); - watch_register_extwake_callback(HAL_GPIO_A4_pin(), cb_accelerometer_wake, false); + + // Wake on motion seemed like a good idea when the threshold was lower, but the UX makes less sense now. + // Still if you want to wake on motion, you can do it by uncommenting this line: + // watch_register_extwake_callback(HAL_GPIO_A4_pin(), cb_accelerometer_wake, false); lis2dw_enable_interrupts(); }