Split warning into two messages, so we know which one is the case. (#3710)

This commit is contained in:
Arkadiusz Miśkiewicz 2024-04-25 13:47:39 +02:00 committed by GitHub
parent e3610a2eb1
commit c14043f196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -548,7 +548,10 @@ void MQTT::perhapsReportToMap()
} 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");
if (map_position_precision == 0)
LOG_WARN("MQTT Map reporting is enabled, but precision is 0\n");
if (localPosition.latitude_i == 0 && localPosition.longitude_i == 0)
LOG_WARN("MQTT Map reporting is enabled, but no position available.\n");
return;
}