summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@ka-ata-killa.ourano.james.local>2021-03-08 17:00:58 +0000
committerroot <root@ka-ata-killa.ourano.james.local>2021-03-08 17:00:58 +0000
commit70a5c9e1eeeb162049a6678d3f15b99628dcc327 (patch)
tree38330c14385ae0c9ab15b07805b30eb8c202c2dd
parent11623a5ced1a64264d43f1f844c1cf5f34562581 (diff)
downloadclock-70a5c9e1eeeb162049a6678d3f15b99628dcc327.tar.gz
clock-70a5c9e1eeeb162049a6678d3f15b99628dcc327.tar.bz2
clock-70a5c9e1eeeb162049a6678d3f15b99628dcc327.zip
fix bug we never entered survey mode, cycle bottom display at a rate that is co-prime with 60
-rw-r--r--app/gps.c4
-rw-r--r--app/max7219.c2
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) {