From 6b19ce95d30b1216b564bee9f6327c337fba53ac Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 18 Mar 2018 17:36:03 +1300 Subject: [PATCH] Adjusted speed timings --- GpsTracker/Config.h | 4 ++-- GpsTracker/Gps.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GpsTracker/Config.h b/GpsTracker/Config.h index d42180b..48ea242 100644 --- a/GpsTracker/Config.h +++ b/GpsTracker/Config.h @@ -62,8 +62,8 @@ namespace config { { 100, 210 }, { 180, 180 }, };*/ - - { 5, 600 }, + { 3, 1800 }, + { 5, 900 }, { 10, 600 }, { 20, 600 }, { 30, 540 }, diff --git a/GpsTracker/Gps.cpp b/GpsTracker/Gps.cpp index 37a66af..05aba7d 100644 --- a/GpsTracker/Gps.cpp +++ b/GpsTracker/Gps.cpp @@ -30,9 +30,9 @@ namespace gps { do { currentStatus = hardware::sim808::device.getGpsStatus(); - if (currentStatus > SIM808_GPS_STATUS::FIX) break //if we have an accurate fix, break right now + if (currentStatus > SIM808_GPS_STATUS::FIX) break; //if we have an accurate fix, break right now - VERBOSE_FORMAT("acquireCurrentPosition", "%d", currentStatus); + NOTICE_FORMAT("acquireCurrentPosition", "%d", currentStatus); mainunit::deepSleep(GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000); timeout -= GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS; } while (timeout > 1);