fixed homie config fail mode

This commit is contained in:
Your Name 2021-05-24 20:35:41 +02:00
parent 72f8d36393
commit cad836b070

View File

@ -369,7 +369,7 @@ int determineNextPump()
{ {
if ((plant.getHoursStart() > getCurrentHour() && plant.getHoursEnd() < getCurrentHour()) || if ((plant.getHoursStart() > getCurrentHour() && plant.getHoursEnd() < getCurrentHour()) ||
(getCurrentTime() < 10000) /* no time from NTP received */) (getCurrentTime() < 10000) /* no time from NTP received */)
{ {todotdotdotodtodtoedot
Serial.printf("%d Requested pumping\r\n", i); Serial.printf("%d Requested pumping\r\n", i);
pumpToUse = i; pumpToUse = i;
} else { } else {
@ -561,6 +561,8 @@ void setup()
.setUnit("V"); .setUnit("V");
sensorWater.advertise("remaining").setDatatype(NUMBER_TYPE).setUnit("%"); sensorWater.advertise("remaining").setDatatype(NUMBER_TYPE).setUnit("%");
} else { } else {
Serial <<"Wifi mode set to " << WIFI_AP_STA << endl;
WiFi.mode(WIFI_AP_STA);
Serial.println("Initial Setup. Start Accesspoint..."); Serial.println("Initial Setup. Start Accesspoint...");
mDownloadMode = true; mDownloadMode = true;
} }