From 213ac422deb0df0b28996159a1f8b9484fdf4b9b Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Fri, 7 Jul 2023 14:59:04 +0200 Subject: [PATCH] top --- lib/Pump/pump.cpp | 2 ++ lib/Pump/pump.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Pump/pump.cpp b/lib/Pump/pump.cpp index b99c43c..229f735 100644 --- a/lib/Pump/pump.cpp +++ b/lib/Pump/pump.cpp @@ -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; diff --git a/lib/Pump/pump.h b/lib/Pump/pump.h index f125bf1..78973d6 100644 --- a/lib/Pump/pump.h +++ b/lib/Pump/pump.h @@ -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();