Skip to content

Commit e04675a

Browse files
committed
Reduce frequency of "No GNSS date/time available for system RTC" messges
1 parent 391e7fc commit e04675a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,13 @@ void rtcUpdate()
14831483
}
14841484
else
14851485
{
1486-
systemPrintln("No GNSS date/time available for system RTC.");
1486+
// Reduce the output frequency
1487+
static uint32_t lastErrorMsec = -1000 * 1000 * 1000;
1488+
if ((millis() - lastErrorMsec) > (30 * 1000))
1489+
{
1490+
lastErrorMsec = millis();
1491+
systemPrintln("No GNSS date/time available for system RTC.");
1492+
}
14871493
} // End timeValid
14881494
} // End lastRTCAttempt
14891495
} // End online.gnss

0 commit comments

Comments
 (0)