Fix typo in function name
This commit is contained in:
parent
64ef26117f
commit
88baeee58e
|
@ -300,7 +300,8 @@ void timer() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void getCurrentTemperatur() {
|
|
||||||
|
void getCurrentTemperature() {
|
||||||
if (millis() - lastTempCycle > 5000) {
|
if (millis() - lastTempCycle > 5000) {
|
||||||
sensors.requestTemperatures();
|
sensors.requestTemperatures();
|
||||||
temperature = int(sensors.getTempCByIndex(0)) != -127
|
temperature = int(sensors.getTempCByIndex(0)) != -127
|
||||||
|
@ -376,14 +377,14 @@ void setup() {
|
||||||
BUILD_VERSION + BUILD_DEBUG ? "-debug" : "");
|
BUILD_VERSION + BUILD_DEBUG ? "-debug" : "");
|
||||||
});
|
});
|
||||||
|
|
||||||
getCurrentTemperatur();
|
getCurrentTemperature();
|
||||||
server.begin();
|
server.begin();
|
||||||
debugln(F("Webserver started"));
|
debugln(F("Webserver started"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
server.handleClient();
|
server.handleClient();
|
||||||
getCurrentTemperatur();
|
getCurrentTemperature();
|
||||||
timer();
|
timer();
|
||||||
yield();
|
yield();
|
||||||
delay(50);
|
delay(50);
|
||||||
|
|
Loading…
Reference in New Issue