Merge pull request #3480 from GUVWAF/logsMapReport

Don't spam logs if no position with map reporting (2)
This commit is contained in:
GUVWAF
2024-03-23 20:12:25 +01:00
committed by GitHub

View File

@@ -546,6 +546,7 @@ void MQTT::perhapsReportToMap()
return;
} else {
if (map_position_precision == 0 || (localPosition.latitude_i == 0 && localPosition.longitude_i == 0)) {
last_report_to_map = millis();
LOG_WARN("MQTT Map reporting is enabled, but precision is 0 or no position available.\n");
return;
}