Skip to content

Commit

Permalink
Merge pull request #3480 from GUVWAF/logsMapReport
Browse files Browse the repository at this point in the history
Don't spam logs if no position with map reporting (2)
  • Loading branch information
GUVWAF authored Mar 23, 2024
2 parents 4cce4c7 + a7c005c commit 381d523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mqtt/MQTT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 381d523

Please sign in to comment.