simplify network task loop
This commit is contained in:
12
main.cpp
12
main.cpp
@@ -32,21 +32,11 @@ void networkTask(void *pvParameters)
|
|||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
bool connected = network->update();
|
bool connected = network->update();
|
||||||
|
if(connected && openerEnabled)
|
||||||
if(connected)
|
|
||||||
{
|
|
||||||
if(openerEnabled)
|
|
||||||
{
|
{
|
||||||
networkOpener->update();
|
networkOpener->update();
|
||||||
}
|
}
|
||||||
network->update();
|
|
||||||
webCfgServer->update();
|
webCfgServer->update();
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
network->update();
|
|
||||||
webCfgServer->update();
|
|
||||||
}
|
|
||||||
|
|
||||||
delay(200);
|
delay(200);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user