Fixed issue "Strange behavior on restart if lan is not initialized #22"

This commit is contained in:
2018-06-24 22:08:08 +03:00
parent bfee598017
commit f219951630
2 changed files with 29 additions and 3 deletions

View File

@@ -620,6 +620,7 @@ void applyConfig() {
if (owArr && !owReady) {
aJsonObject *item = owArr->child;
owReady = owSetup(&Changed);
if (owReady) Serial.println(F("One wire Ready"));
t_count = 0;
while (item && owReady) {
if ((item->type == aJson_Object)) {
@@ -1025,7 +1026,7 @@ pinMode(TXEnablePin, OUTPUT);
#endif
delay(20);
owReady = 0;
//owReady = 0;
#ifdef _owire
if (net) net->idle(&owIdle);