mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 02:02:23 +00:00
a lot of thread housekeeping. Switch them off when not needed / disabled.
This commit is contained in:
@@ -165,11 +165,20 @@ void createSSLCert()
|
||||
|
||||
WebServerThread *webServerThread;
|
||||
|
||||
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}
|
||||
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {
|
||||
if(!config.network.wifi_enabled) {
|
||||
setInterval(INT32_MAX);
|
||||
enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
int32_t WebServerThread::runOnce()
|
||||
{
|
||||
// DEBUG_MSG("WebServerThread::runOnce()\n");
|
||||
if(!config.network.wifi_enabled) {
|
||||
setInterval(INT32_MAX);
|
||||
enabled = false;
|
||||
}
|
||||
|
||||
handleWebResponse();
|
||||
|
||||
if (requestRestart && (millis() / 1000) > requestRestart) {
|
||||
|
||||
Reference in New Issue
Block a user