From f93d4449666ce953c6cc62a0124af091a3eef57c Mon Sep 17 00:00:00 2001 From: tablatronix Date: Thu, 14 Nov 2019 00:24:11 -0600 Subject: [PATCH] remove otaflag probably not needed --- examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino b/examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino index 2591356..98a3a56 100644 --- a/examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino +++ b/examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino @@ -11,7 +11,6 @@ #ifdef USEOTA #include #include -bool otastarted = false; #endif #define TRIGGER_PIN 0 @@ -223,10 +222,6 @@ void setup() { #ifdef USEOTA ArduinoOTA.begin(); - ArduinoOTA.onStart([]() { - otastarted = true; - Serial.println("\nOTA onStart"); - }); #endif } @@ -234,7 +229,6 @@ void loop() { #ifdef USEOTA ArduinoOTA.handle(); - if(otastarted)return; #endif // is configuration portal requested? if ( digitalRead(TRIGGER_PIN) == LOW ) {