mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
b12, cleanup, formatting, small fixes
This commit is contained in:
@@ -386,6 +386,10 @@ void Mqtt::on_publish(uint16_t packetId) const {
|
||||
|
||||
// called when MQTT settings have changed via the Web forms
|
||||
void Mqtt::reset_mqtt() {
|
||||
if (!mqtt_enabled_) {
|
||||
mqtt_messages_.clear();
|
||||
}
|
||||
|
||||
if (!mqttClient_) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user