From 70a5c9e1eeeb162049a6678d3f15b99628dcc327 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 8 Mar 2021 17:00:58 +0000 Subject: fix bug we never entered survey mode, cycle bottom display at a rate that is co-prime with 60 --- app/gps.c | 4 ++-- app/max7219.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/gps.c b/app/gps.c index f905091..4ddbcab 100644 --- a/app/gps.c +++ b/app/gps.c @@ -146,8 +146,8 @@ ubx_recv_nav_status (uint8_t *ptr, unsigned len) { uint8_t gps_fix, flags, fix_stat, flags2; uint32_t d; + static unsigned kick_off_survey_mode = 40; - unsigned kick_off_survey_mode = 300; if ((!ptr) || (len != 16)) return -1; @@ -232,7 +232,7 @@ ubx_recv_nav_status (uint8_t *ptr, unsigned len) if (!kick_off_survey_mode) { printf ("GPS no time fix - kicking off survey mode\n"); ubx_cfg_tmode (1, 0, 0, 0, 0, 3600, 3600); // 1 hour and 6cm - } + } } return 0; diff --git a/app/max7219.c b/app/max7219.c index add2044..2e055fb 100644 --- a/app/max7219.c +++ b/app/max7219.c @@ -427,7 +427,7 @@ void max7219_dispatch (void) write_dd (l.nanosecond / 10000000, 6, 1); wot = e.s; - wot /= 4; + wot /= 7; wot %= 4; switch (wot) { -- cgit v1.2.3