Make regulators turn off device when they are disabled
This commit is contained in:
parent
03c2be7977
commit
0acf6c7fc4
|
@ -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;
|
||||
|
|
|
@ -22,6 +22,7 @@ public slots:
|
|||
void setPoint( float setPoint );
|
||||
void setBand ( float band );
|
||||
void setInvert( bool invert );
|
||||
virtual void makeInactive() override;
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in a new issue