Check error-state if doors are closed
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user