From c0febe7fd6d079a562ae51dbc405d582057ab9b5 Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 18 Mar 2018 12:23:33 +1300 Subject: [PATCH] Force the hand to obtain an accurate fix when possible. To be improved (intermediate timeout between fix / accurate fix and no fix at all) --- GpsTracker/Gps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GpsTracker/Gps.cpp b/GpsTracker/Gps.cpp index 9dbe1c4..37a66af 100644 --- a/GpsTracker/Gps.cpp +++ b/GpsTracker/Gps.cpp @@ -30,7 +30,7 @@ namespace gps { do { currentStatus = hardware::sim808::device.getGpsStatus(); - if (currentStatus > SIM808_GPS_STATUS::NO_FIX) break; + if (currentStatus > SIM808_GPS_STATUS::FIX) break //if we have an accurate fix, break right now VERBOSE_FORMAT("acquireCurrentPosition", "%d", currentStatus); mainunit::deepSleep(GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000);