mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
allow light sleep when MQTT is enabled
This commit is contained in:
parent
067f9558c2
commit
6e41f46df2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user