mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
Actually update last_report_to_map
This commit is contained in:
parent
fcbdd69885
commit
87acb4c683
@ -546,6 +546,7 @@ void MQTT::perhapsReportToMap()
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (map_position_precision == 0 || (localPosition.latitude_i == 0 && localPosition.longitude_i == 0)) {
|
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");
|
LOG_WARN("MQTT Map reporting is enabled, but precision is 0 or no position available.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user