mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 03:29:17 +00:00
allow light sleep when MQTT is enabled
This commit is contained in:
parent
6d241dbc33
commit
223859d28b
@ -589,14 +589,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