Revert "Revert "develop --> Master" (#8244)" (#8450)

This reverts commit 5bcc47dddb.
This commit is contained in:
GUVWAF
2025-10-25 13:59:01 +02:00
committed by GitHub
parent 95d3ecb239
commit 664d17c519
13 changed files with 229 additions and 130 deletions

View File

@@ -1659,8 +1659,12 @@ bool GPS::lookForLocation()
#ifndef TINYGPS_OPTION_NO_STATISTICS
if (reader.failedChecksum() > lastChecksumFailCount) {
LOG_WARN("%u new GPS checksum failures, for a total of %u", reader.failedChecksum() - lastChecksumFailCount,
reader.failedChecksum());
// In a GPS_DEBUG build we want to log all of these. In production, we only care if there are many of them.
#ifndef GPS_DEBUG
if (reader.failedChecksum() > 4)
#endif
LOG_WARN("%u new GPS checksum failures, for a total of %u", reader.failedChecksum() - lastChecksumFailCount,
reader.failedChecksum());
lastChecksumFailCount = reader.failedChecksum();
}
#endif