summaryrefslogtreecommitdiffstats
path: root/app/gps.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/gps.c')
-rw-r--r--app/gps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/gps.c b/app/gps.c
index b3c322d..39bb13f 100644
--- a/app/gps.c
+++ b/app/gps.c
@@ -217,7 +217,7 @@ ubx_recv_utc (uint8_t *ptr, unsigned len)
now = SCS_DWT_CYCCNT;
abs = abs_extend (now);
- gps_last_happy = abs + (int64_t) HZ * (int64_t) 60;
+ gps_last_happy = make_happy (abs, 180);
pll_set_offset (gps_time, abs);