fixed homie config fail mode
This commit is contained in:
parent
72f8d36393
commit
cad836b070
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user