mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 19:05:44 +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;
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user