aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/src/Core/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c
index 130cf8c..07657fa 100644
--- a/src/common/src/Core/main.c
+++ b/src/common/src/Core/main.c
@@ -455,7 +455,8 @@ static void gps_monit_task(void __attribute__ ((unused))*pvParameters) {
usart_debug("Even changed: %i %i %s\r\n", hour_is_even, time.tm_hour, derived_mode ? "DERIVED" : "GPS");
}
}
- else if (last_hour_is_even_change_timestamp + 2 * 3600 < now) {
+ else if (last_hour_is_even_change_timestamp + (2 * 3600 * 1000) < now) {
+ hour_is_even = (hour_is_even + 1) % 2;
last_even = hour_is_even;
usart_debug("Even changed: %i %i FREE-RUNNING\r\n", hour_is_even, time.tm_hour);