This commit is contained in:
2023-07-07 14:59:04 +02:00
parent 1498e5a1dd
commit 213ac422de
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -132,6 +132,8 @@ bool Pump::checkSensorsValues() {
this->maxPressureStart = millis();
else if (millis() - this->maxPressureStart > Pump::maxMaxPressureTime)
this->changeState(State::Standby);
} else {
this->maxPressureStart = 0;
}
return true;
+3 -3
View File
@@ -36,11 +36,11 @@ class Pump {
static const uint8_t delayCheckSensor = 100;
static const uint8_t delayReadPressure = 33;
static const uint8_t minPressure = 200;
static const uint16_t restartPressure = 300;
static const uint16_t restartPressure = 250;
static const uint16_t blinkTime = 1000;
static const uint16_t delayReadFlow = 1000;
static const uint16_t maxPressure = 710;
static const uint16_t maxMaxPressureTime = 20000;
static const uint16_t maxPressure = 620;
static const uint16_t maxMaxPressureTime = 10000;
static const uint16_t maxPreErrorTime = 30000;
void readSensorValues();