Skip to content

Commit

Permalink
Actually update last_report_to_map
Browse files Browse the repository at this point in the history
  • Loading branch information
GUVWAF authored and mverch67 committed Mar 24, 2024
1 parent fcbdd69 commit 87acb4c
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 87acb4c

Please sign in to comment.