Make regulators turn off device when they are disabled
This commit is contained in:
parent
03c2be7977
commit
0acf6c7fc4
2 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue