From: Joey Castillo Date: Wed, 21 May 2025 19:08:00 +0000 (-0400) Subject: movement: fire top of minute at top of minute, not bottom of last minute X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=5ee0de27cf1accec8ef52c3d1c4128099d201c44;p=sensor-watch.git movement: fire top of minute at top of minute, not bottom of last minute --- diff --git a/movement.c b/movement.c index 773a374..561925c 100644 --- a/movement.c +++ b/movement.c @@ -680,7 +680,6 @@ void app_setup(void) { // set up the 1 minute alarm (for background tasks and low power updates) watch_date_time_t alarm_time; alarm_time.reg = 0; - alarm_time.unit.second = 59; // after a match, the alarm fires at the next rising edge of CLK_RTC_CNT, so 59 seconds lets us update at :00 watch_rtc_register_alarm_callback(cb_alarm_fired, alarm_time, ALARM_MATCH_SS); }