add motor blocked gpio output

This commit is contained in:
technyon
2023-04-07 15:39:09 +02:00
parent a30b716869
commit a783750741
3 changed files with 6 additions and 0 deletions

View File

@@ -758,6 +758,9 @@ void NukiWrapper::updateGpioOutputs()
case PinRole::OutputHighUnlocked:
_gpio->setPinOutput(entry.pin, lockState == LockState::Locked || lockState == LockState::Locking ? LOW : HIGH);
break;
case PinRole::OutputHighMotorBlocked:
_gpio->setPinOutput(entry.pin, lockState == LockState::MotorBlocked ? HIGH : LOW);
break;
}
}
}