mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 21:29:49 +03:00
Fixed issue "Strange behavior on restart if lan is not initialized #22"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user