diff --git a/src/actors/regulator.cpp b/src/actors/regulator.cpp index 289b9dd..d334cce 100644 --- a/src/actors/regulator.cpp +++ b/src/actors/regulator.cpp @@ -34,6 +34,14 @@ void Regulator::sensorEvent(Sensor sensor) } } +void Regulator::makeInactive() +{ + first = true; + if(active) + sigValue(!triggerValue); + Actor::makeInactive(); +} + void Regulator::setPoint(float setPoint) { setPoint_ = setPoint; diff --git a/src/actors/regulator.h b/src/actors/regulator.h index 3853320..cc742a6 100644 --- a/src/actors/regulator.h +++ b/src/actors/regulator.h @@ -22,6 +22,7 @@ public slots: void setPoint( float setPoint ); void setBand ( float band ); void setInvert( bool invert ); + virtual void makeInactive() override; public: