From 1ec1f2e4207405d55c34c936e2c458cb4a7e8806 Mon Sep 17 00:00:00 2001 From: Wesley Ellis Date: Wed, 6 Apr 2022 14:33:24 -0400 Subject: Add tomato face: a pomodoro style timer (#61) --- watch-library/shared/watch/watch_utility.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'watch-library/shared/watch/watch_utility.c') diff --git a/watch-library/shared/watch/watch_utility.c b/watch-library/shared/watch/watch_utility.c index 3f8aa619..252624b3 100644 --- a/watch-library/shared/watch/watch_utility.c +++ b/watch-library/shared/watch/watch_utility.c @@ -188,3 +188,11 @@ float watch_utility_thermistor_temperature(uint16_t value, bool highside, float return reading; } + +uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds) { + uint32_t new = now; + new += hours * 60 * 60; + new += minutes * 60; + new += seconds; + return new; +} -- cgit v1.2.3