From 1498e5a1dd6b65b18984e05796e35b177a0d28cc Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Fri, 7 Jul 2023 10:36:37 +0200 Subject: [PATCH] pumpe druckschalter werte --- lib/Pump/pump.cpp | 3 +-- lib/Pump/pump.h | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Pump/pump.cpp b/lib/Pump/pump.cpp index 47633f9..b99c43c 100644 --- a/lib/Pump/pump.cpp +++ b/lib/Pump/pump.cpp @@ -208,8 +208,7 @@ void Pump::stateTimer() { } void Pump::stateStandby() { - this->checkSensorsValues(); - if (this->pressure < Pump::maxPressure / 2) { + if (this->pressure < Pump::restartPressure) { if (this->timerStandby) this->changeState(State::Timer); else diff --git a/lib/Pump/pump.h b/lib/Pump/pump.h index 19a4fac..f125bf1 100644 --- a/lib/Pump/pump.h +++ b/lib/Pump/pump.h @@ -35,11 +35,12 @@ class Pump { private: static const uint8_t delayCheckSensor = 100; static const uint8_t delayReadPressure = 33; - static const uint8_t minPressure = 100; + static const uint8_t minPressure = 200; + static const uint16_t restartPressure = 300; static const uint16_t blinkTime = 1000; static const uint16_t delayReadFlow = 1000; - static const uint16_t maxPressure = 1000; - static const uint16_t maxMaxPressureTime = 30000; + static const uint16_t maxPressure = 710; + static const uint16_t maxMaxPressureTime = 20000; static const uint16_t maxPreErrorTime = 30000; void readSensorValues();