summaryrefslogtreecommitdiffstats
path: root/app/gps.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/gps.c')
-rw-r--r--app/gps.c4
1 files changed, 2 insertions, 2 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;