From dfa25cd2b40372e8f1efbe04f309036f80f59029 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 26 Jan 2022 16:58:05 +0100 Subject: [PATCH] increase delay in gps read spin task --- src/gpsread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index 428604e4..5cb3c170 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -116,9 +116,9 @@ time_t get_gpstime(uint16_t *msec) { gps_tm.tm_mday = atoi(gpsday.value()); // day, 01 to 31 gps_tm.tm_mon = atoi(gpsmonth.value()) - 1; // month, 01 to 12 gps_tm.tm_year = atoi(gpsyear.value()) - 1900; // year, YYYY - + // convert UTC tm to time_t epoch - gps_tm.tm_isdst = 0; // UTC has no DST + gps_tm.tm_isdst = 0; // UTC has no DST time_t t = mkgmtime(&gps_tm); // add protocol delay with millisecond precision @@ -172,7 +172,7 @@ void gps_loop(void *pvParameters) { // gps.passedChecksum(), gps.failedChecksum(), // gps.sentencesWithFix()); - yield(); // yield to CPU + delay(50); } // end of infinite loop