From 920bf28c3267825aee82b1f110e16372ed204c7e Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Fri, 18 Oct 2024 18:58:41 +0200 Subject: [PATCH] 2024-10-1800 Temperatur Korrektur --- platformio.ini | 3 ++- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index e1b6a98..6bf55af 100644 --- a/platformio.ini +++ b/platformio.ini @@ -22,5 +22,6 @@ lib_deps = adafruit/DHT sensor library @ 1.4.6 build_flags = ${env.build_flags} - -DKorrekturTemperatur=0.0 + -DKorrekturTemperatur=-4.1 + -DKorrekturFeuchtigkeit=0.0 diff --git a/src/main.cpp b/src/main.cpp index 88797c6..d472002 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -106,7 +106,7 @@ void loop() { } else { Serial.print(F("Temperature: ")); - Temperatur = event.temperature; + Temperatur = event.temperature + KorrekturTemperatur; Serial.print(Temperatur); Serial.println(F("°C")); }