Check error-state if doors are closed
This commit is contained in:
parent
379a5d4e3e
commit
87d50a05dd
@ -550,10 +550,14 @@ void ATBDeviceControllerPlugin::onAllDoorsClosed()
|
||||
{
|
||||
qCritical() << "ATBDeviceControllerPlugin::onAllDoorsClosed()";
|
||||
|
||||
emit this->requestModeIDLE();
|
||||
this->dbus->finishedBackgroundTask("DOOR_OPEN");
|
||||
if (this->diag->isErrorState()) {
|
||||
emit this->requestModeOOO();
|
||||
}
|
||||
else {
|
||||
emit this->requestModeIDLE();
|
||||
}
|
||||
|
||||
// TODO: check for errors and create a machine event
|
||||
this->dbus->finishedBackgroundTask("DOOR_OPEN");
|
||||
}
|
||||
|
||||
void ATBDeviceControllerPlugin::onNewVoltage(uint32_t voltage)
|
||||
|
Loading…
Reference in New Issue
Block a user