From 27c290dd5b82c9a9d8b58b0c2b100c1221e500b0 Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 18 Mar 2018 21:38:56 +1300 Subject: [PATCH] Added detected velocity and sleep timing when setting false gps coordinate --- GpsTracker/Debug.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GpsTracker/Debug.cpp b/GpsTracker/Debug.cpp index 4e41311..42dcb41 100644 --- a/GpsTracker/Debug.cpp +++ b/GpsTracker/Debug.cpp @@ -173,6 +173,8 @@ namespace debug { strlcpy_P(gps::lastPosition, FAKE_GPS_ENTRY, GPS_POSITION_SIZE); NOTICE_FORMAT("setFakeGpsPosition", "Last position set to : %s", gps::lastPosition); + NOTICE_FORMAT("setFakeGpsPosition", "Speed : %d", gps::getVelocity()); + NOTICE_FORMAT("setFakeGpsPosition", "Sleep time : %d", core::computeSleepTime(gps::getVelocity())); } void getAndDisplayBattery() {