Heater algoritm now 10/10min, was 5/15min
This commit is contained in:
@@ -191,9 +191,9 @@ char HeaterSi7021 (float humidity)
|
||||
}
|
||||
break;
|
||||
|
||||
// Heater is now on, let the sensor cook for 5 minutes
|
||||
// Heater is now on, let the sensor cook for 10 minutes
|
||||
case 2:
|
||||
if ( (millis() - StatemachineTimer) >= 300000 ) {
|
||||
if ( (millis() - StatemachineTimer) >= 600000 ) {
|
||||
StatemachineTimer = millis();
|
||||
Heater = 0;
|
||||
state = 3;
|
||||
@@ -202,9 +202,9 @@ char HeaterSi7021 (float humidity)
|
||||
}
|
||||
TempValid = 0;
|
||||
break;
|
||||
// Heater is now off, let the sensor cool for 15 minutes
|
||||
// Heater is now off, let the sensor cool for 10 minutes
|
||||
case 3:
|
||||
if ( (millis() - StatemachineTimer) >= 900000 ) {
|
||||
if ( (millis() - StatemachineTimer) >= 600000 ) {
|
||||
TempValid = 1; // Sensor cooled, so we can take a valid temperature reading
|
||||
if (humidity >= 95) {
|
||||
// Humidity still above 95%, repeat heating/cooling
|
||||
|
Reference in New Issue
Block a user