Skip MQTT allocation when disabled (#10411)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Clive Blackledge
2026-05-07 11:51:55 -05:00
committed by GitHub
co-authored by GitHub Ben Meadors
parent 784e3748e2
commit 4553d1e0b1
2 changed files with 15 additions and 0 deletions
+3
View File
@@ -409,6 +409,9 @@ void MQTT::onReceive(char *topic, byte *payload, size_t length)
void mqttInit()
{
if (!moduleConfig.mqtt.enabled)
return;
new MQTT();
}