summaryrefslogtreecommitdiffstats
path: root/watch-library
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-11-25 13:18:10 -0500
committerJoey Castillo <jose.castillo@gmail.com>2021-11-25 13:18:10 -0500
commit4a4ab81c6c11bc159796992590646d9ef8de5f1b (patch)
treecda9e197e3e225945642a21af1270edca7e28a24 /watch-library
parentac43c1ca48ba4e8d645f040d9930e761558fdad5 (diff)
downloadSensor-Watch-4a4ab81c6c11bc159796992590646d9ef8de5f1b.tar.gz
Sensor-Watch-4a4ab81c6c11bc159796992590646d9ef8de5f1b.tar.bz2
Sensor-Watch-4a4ab81c6c11bc159796992590646d9ef8de5f1b.zip
remove log statements (oops)
Diffstat (limited to 'watch-library')
-rw-r--r--watch-library/watch/watch_utility.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/watch-library/watch/watch_utility.c b/watch-library/watch/watch_utility.c
index a1f696c4..02dbfb25 100644
--- a/watch-library/watch/watch_utility.c
+++ b/watch-library/watch/watch_utility.c
@@ -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;
}