From cad836b070d7d339a9d8a0655a678168f14ef77f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 24 May 2021 20:35:41 +0200 Subject: [PATCH] fixed homie config fail mode --- esp32/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 9750d2e..8a8d213 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -369,7 +369,7 @@ int determineNextPump() { if ((plant.getHoursStart() > getCurrentHour() && plant.getHoursEnd() < getCurrentHour()) || (getCurrentTime() < 10000) /* no time from NTP received */) - { + {todotdotdotodtodtoedot Serial.printf("%d Requested pumping\r\n", i); pumpToUse = i; } else { @@ -561,6 +561,8 @@ void setup() .setUnit("V"); sensorWater.advertise("remaining").setDatatype(NUMBER_TYPE).setUnit("%"); } else { + Serial <<"Wifi mode set to " << WIFI_AP_STA << endl; + WiFi.mode(WIFI_AP_STA); Serial.println("Initial Setup. Start Accesspoint..."); mDownloadMode = true; }