]> git.earman.xyz Git - sensor-watch.git/commitdiff
movement: fire top of minute at top of minute, not bottom of last minute
authorJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 19:08:00 +0000 (15:08 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 19:08:00 +0000 (15:08 -0400)
movement.c

index 773a3742e5ea6a37635ed04d791a2462cd77fd37..561925ce5fa26749b2682f9b152e8a9c5bfa7b97 100644 (file)
@@ -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);
     }