Update src/mqtt/MQTT.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ben Meadors
2025-07-24 06:12:54 -05:00
committed by GitHub
parent 6f6b17462d
commit 0bfbd189d1

View File

@@ -642,7 +642,7 @@ bool MQTT::isValidConfig(const meshtastic_ModuleConfig_MQTTConfig &config, MQTTC
const char *warning = "Invalid MQTT config: default server address must not have a port specified";
LOG_ERROR(warning);
meshtastic_ClientNotification *cn = clientNotificationPool.allocZeroed();
cn->level = meshtastic_LogRecord_Level_WARNING;
cn->level = meshtastic_LogRecord_Level_ERROR;
cn->time = getValidTime(RTCQualityFromNet);
strcpy(cn->message, warning);
service->sendClientNotification(cn);