Fix typo in function name

This commit is contained in:
gilex-dev 2024-06-25 13:09:48 +02:00
parent 64ef26117f
commit 88baeee58e
Signed by: gilex-dev
GPG Key ID: FBACA726925AFBEB
1 changed files with 4 additions and 3 deletions

View File

@ -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);