]> git.earman.xyz Git - sensor-watch.git/commitdiff
remove log statements (oops)
authorJoey Castillo <jose.castillo@gmail.com>
Thu, 25 Nov 2021 18:18:10 +0000 (13:18 -0500)
committerJoey Castillo <jose.castillo@gmail.com>
Thu, 25 Nov 2021 18:18:10 +0000 (13:18 -0500)
watch-library/watch/watch_utility.c

index a1f696c40dec3ef81e5dbfbf2fedfb98a6f38e63..02dbfb2534556bcd1fb6131e855b09405cea8f92 100644 (file)
@@ -51,8 +51,6 @@ uint32_t watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_
         334  // December
     };
 
-    printf("input: %d/%d/%d %d:%02d:%02d offset by %ld\n", year, month, day, hour, minute, second, utc_offset);
-
     uint32_t year_adj = year + 4800;
     uint32_t febs = year_adj - (month <= 2 ? 1 : 0);  /* Februaries since base. */
     uint32_t leap_days = 1 + (febs / 4) - (febs / 100) + (febs / 400);
@@ -63,9 +61,7 @@ uint32_t watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_
     timestamp += hour * 3600;
     timestamp += minute * 60;
     timestamp += second;
-    printf("timestamp was %ld.\ntimezone is %ld.\n", timestamp, utc_offset);
     timestamp -= utc_offset;
-    printf("timestamp now %ld.\n\n", timestamp);
 
     return timestamp;
 }