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;
}
} else {
// we are connected to server, check often for new requests on the TCP port
if (!wantConnection) {
LOG_INFO("MQTT link not needed, drop");
pubSub.disconnect();
}
powerFSM.trigger(EVENT_CONTACT_FROM_PHONE); // Suppress entering light sleep (because that would turn off bluetooth)
return 20;
return 100;
}
#else
// No networking available, return default interval