increase delay in gps read spin task

This commit is contained in:
cyberman54 2022-01-26 16:58:05 +01:00
parent dc427314a1
commit dfa25cd2b4

View File

@ -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_mday = atoi(gpsday.value()); // day, 01 to 31
gps_tm.tm_mon = atoi(gpsmonth.value()) - 1; // month, 01 to 12 gps_tm.tm_mon = atoi(gpsmonth.value()) - 1; // month, 01 to 12
gps_tm.tm_year = atoi(gpsyear.value()) - 1900; // year, YYYY gps_tm.tm_year = atoi(gpsyear.value()) - 1900; // year, YYYY
// convert UTC tm to time_t epoch // 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); time_t t = mkgmtime(&gps_tm);
// add protocol delay with millisecond precision // add protocol delay with millisecond precision
@ -172,7 +172,7 @@ void gps_loop(void *pvParameters) {
// gps.passedChecksum(), gps.failedChecksum(), // gps.passedChecksum(), gps.failedChecksum(),
// gps.sentencesWithFix()); // gps.sentencesWithFix());
yield(); // yield to CPU delay(50);
} // end of infinite loop } // end of infinite loop