add some debug logs
This commit is contained in:
@@ -19,10 +19,10 @@ void Heating::init(Temperature *tempsensor) {
|
||||
Serial.print("humidity read: ");
|
||||
Serial.println(hum);
|
||||
|
||||
if (hum > 65) {
|
||||
if (hum > 65.0) {
|
||||
// turn off active turnoff timers
|
||||
mLuefterTicker.detach();
|
||||
|
||||
Serial.println("heating should run now!");
|
||||
// turn on heating and fan
|
||||
digitalWrite(LuefterPin, HIGH);
|
||||
digitalWrite(HeizungPin, HIGH);
|
||||
@@ -32,10 +32,10 @@ void Heating::init(Temperature *tempsensor) {
|
||||
mLuefterTicker.detach();
|
||||
mFanWaiting = false;
|
||||
}
|
||||
} else if (hum < 60) {
|
||||
} else if (hum < 60.0) {
|
||||
// if humidity too low turn off heating and fan after 60secs
|
||||
digitalWrite(HeizungPin, LOW);
|
||||
|
||||
Serial.println("heating should NOT run now!");
|
||||
if (!mFanWaiting) {
|
||||
mFanWaiting = true;
|
||||
mLuefterTicker.once(60, []() {
|
||||
|
||||
Reference in New Issue
Block a user