diff options
author | root <root@ka-ata-killa.ourano.james.local> | 2021-03-08 17:00:58 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.ourano.james.local> | 2021-03-08 17:00:58 +0000 |
commit | 70a5c9e1eeeb162049a6678d3f15b99628dcc327 (patch) | |
tree | 38330c14385ae0c9ab15b07805b30eb8c202c2dd /app/gps.c | |
parent | 11623a5ced1a64264d43f1f844c1cf5f34562581 (diff) | |
download | clock-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
Diffstat (limited to 'app/gps.c')
-rw-r--r-- | app/gps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |