Make regulators turn off device when they are disabled
This commit is contained in:
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user