allow light sleep when MQTT is enabled

This commit is contained in:
m1nl 2025-05-13 14:21:16 +02:00
parent 067f9558c2
commit 6e41f46df2

View File

@ -585,14 +585,12 @@ int32_t MQTT::runOnce()
return 30000; return 30000;
} }
} else { } else {
// we are connected to server, check often for new requests on the TCP port
if (!wantConnection) { if (!wantConnection) {
LOG_INFO("MQTT link not needed, drop"); LOG_INFO("MQTT link not needed, drop");
pubSub.disconnect(); pubSub.disconnect();
} }
powerFSM.trigger(EVENT_CONTACT_FROM_PHONE); // Suppress entering light sleep (because that would turn off bluetooth) return 100;
return 20;
} }
#else #else
// No networking available, return default interval // No networking available, return default interval