stop using the network and otgw processing if there is no wifi
This commit is contained in:
parent
aedb23170a
commit
377dd375d7
|
@ -182,12 +182,15 @@ void docheckforpic(){
|
|||
//===[ Do the background tasks ]===
|
||||
void doBackgroundTasks()
|
||||
{
|
||||
handleDebug();
|
||||
feedWatchDog(); // Feed the dog before it bites!
|
||||
handleMQTT(); // MQTT transmissions
|
||||
handleOTGW(); // OTGW handling
|
||||
httpServer.handleClient();
|
||||
MDNS.update();
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
//while connected handle everything that uses network stuff
|
||||
handleDebug();
|
||||
handleMQTT(); // MQTT transmissions
|
||||
handleOTGW(); // OTGW handling
|
||||
httpServer.handleClient();
|
||||
MDNS.update();
|
||||
} //otherwise, just wait until reconnected gracefully
|
||||
events(); // trigger ezTime update etc
|
||||
delay(1);
|
||||
}
|
||||
|
|
18
version.h
18
version.h
|
@ -2,15 +2,15 @@
|
|||
#define _VERSION_MAJOR 0
|
||||
#define _VERSION_MINOR 8
|
||||
#define _VERSION_PATCH 6
|
||||
#define _VERSION_BUILD 1035
|
||||
#define _VERSION_GITHASH "1b06ad0"
|
||||
#define _VERSION_BUILD 1037
|
||||
#define _VERSION_GITHASH "aedb231"
|
||||
#define _VERSION_PRERELEASE beta
|
||||
#define _VERSION_DATE "25-07-2021"
|
||||
#define _VERSION_TIME "15:37:49"
|
||||
#define _VERSION_DATE "09-09-2021"
|
||||
#define _VERSION_TIME "23:23:55"
|
||||
#define _SEMVER_CORE "0.8.6"
|
||||
#define _SEMVER_BUILD "0.8.6+1035"
|
||||
#define _SEMVER_GITHASH "0.8.6+1b06ad0"
|
||||
#define _SEMVER_FULL "0.8.6-beta+1b06ad0"
|
||||
#define _SEMVER_NOBUILD "0.8.6-beta (25-07-2021)"
|
||||
#define _VERSION "0.8.6-beta+1b06ad0 (25-07-2021)"
|
||||
#define _SEMVER_BUILD "0.8.6+1037"
|
||||
#define _SEMVER_GITHASH "0.8.6+aedb231"
|
||||
#define _SEMVER_FULL "0.8.6-beta+aedb231"
|
||||
#define _SEMVER_NOBUILD "0.8.6-beta (09-09-2021)"
|
||||
#define _VERSION "0.8.6-beta+aedb231 (09-09-2021)"
|
||||
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver
|
||||
|
|
Loading…
Reference in New Issue