]> git.earman.xyz Git - sensor-watch.git/commitdiff
remove printf statements
authorjoeycastillo <joeycastillo@utexas.edu>
Sat, 5 Oct 2024 17:01:00 +0000 (13:01 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sat, 5 Oct 2024 17:01:00 +0000 (13:01 -0400)
movement.c

index 5d3f1b3d484abc919ada241b3af7685c2997a443..e661462076ad90254ab963599d1bc737e64ced26 100644 (file)
@@ -94,8 +94,6 @@ static bool _movement_update_dst_offset_cache(void) {
     bool dst_changed = false;
     watch_date_time_t system_date_time = watch_rtc_get_date_time();
 
-    printf("current zone: %d\n", movement_state.settings.bit.time_zone);
-
     for (uint8_t i = 0; i < NUM_ZONE_NAMES; i++) {
         unpack_zone(&zone_defns[i], "", &local_zone);
         watch_date_time_t date_time = watch_utility_date_time_convert_zone(system_date_time, 0, local_zone.offset.hours * 3600 + local_zone.offset.minutes * 60);
@@ -110,11 +108,9 @@ static bool _movement_update_dst_offset_cache(void) {
                 _movement_dst_offset_cache[i] = new_offset;
                 dst_changed = true;
             }
-            printf("zone %d: %d\n", i, new_offset);
         } else {
             // otherwise set the cache to a constant value that indicates no DST check needs to be performed.
             _movement_dst_offset_cache[i] = TIMEZONE_DOES_NOT_OBSERVE;
-            printf("zone %d: %d\n", i, TIMEZONE_DOES_NOT_OBSERVE);
         }
     }