summaryrefslogtreecommitdiffstats
path: root/app/gps.c
diff options
context:
space:
mode:
authorroot <root@lab.panaceas.james.local>2019-02-22 10:45:35 +0000
committerroot <root@lab.panaceas.james.local>2019-02-22 10:45:35 +0000
commit904bc0ebdb9c059b7b1d276829bad766f73dc3e9 (patch)
tree30c01ecf79b72c6953d593d2d3dccfbcd31f76cd /app/gps.c
parente761edee5e8ef7106fc8080fc386447e7956be71 (diff)
downloadclock-904bc0ebdb9c059b7b1d276829bad766f73dc3e9.tar.gz
clock-904bc0ebdb9c059b7b1d276829bad766f73dc3e9.tar.bz2
clock-904bc0ebdb9c059b7b1d276829bad766f73dc3e9.zip
switch to stlink, blinky
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);