Make regulators turn off device when they are disabled

This commit is contained in:
2023-03-12 22:13:00 +01:00
parent 03c2be7977
commit 0acf6c7fc4
2 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -22,6 +22,7 @@ public slots:
void setPoint( float setPoint );
void setBand ( float band );
void setInvert( bool invert );
virtual void makeInactive() override;
public: