Check error-state if doors are closed

This commit is contained in:
Siegfried Siegert 2024-03-19 13:43:45 +01:00
parent 379a5d4e3e
commit 87d50a05dd
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -550,10 +550,14 @@ void ATBDeviceControllerPlugin::onAllDoorsClosed()
{
qCritical() << "ATBDeviceControllerPlugin::onAllDoorsClosed()";
if (this->diag->isErrorState()) {
emit this->requestModeOOO();
}
else {
emit this->requestModeIDLE();
this->dbus->finishedBackgroundTask("DOOR_OPEN");
}
// TODO: check for errors and create a machine event
this->dbus->finishedBackgroundTask("DOOR_OPEN");
}
void ATBDeviceControllerPlugin::onNewVoltage(uint32_t voltage)