remove otaflag probably not needed

This commit is contained in:
tablatronix
2019-11-14 00:24:11 -06:00
parent d90f6854e9
commit f93d444966
@@ -11,7 +11,6 @@
#ifdef USEOTA
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
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 ) {