]> git.earman.xyz Git - sensor-watch.git/commitdiff
no need to check on :15 and :45 -- Nepal does not observe DST
authorjoeycastillo <joeycastillo@utexas.edu>
Sat, 5 Oct 2024 16:57:13 +0000 (12:57 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sat, 5 Oct 2024 16:57:13 +0000 (12:57 -0400)
movement.c

index 624ed296d7472ec542b29937f4fe7a13aa0cf447..5d3f1b3d484abc919ada241b3af7685c2997a443 100644 (file)
@@ -146,8 +146,8 @@ static inline void _movement_disable_fast_tick_if_possible(void) {
 static void _movement_handle_top_of_minute(void) {
     watch_date_time_t date_time = watch_rtc_get_date_time();
 
-    // update the DST offset cache every 15 minutes, since someplace in the world could change.
-    if (date_time.unit.minute % 15 == 0) {
+    // update the DST offset cache every 30 minutes, since someplace in the world could change.
+    if (date_time.unit.minute % 30 == 0) {
         _movement_update_dst_offset_cache();
     }