summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {