Check error-state if doors are closed
This commit is contained in:
		@@ -550,10 +550,14 @@ void ATBDeviceControllerPlugin::onAllDoorsClosed()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    qCritical() << "ATBDeviceControllerPlugin::onAllDoorsClosed()";
 | 
					    qCritical() << "ATBDeviceControllerPlugin::onAllDoorsClosed()";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    emit this->requestModeIDLE();
 | 
					    if (this->diag->isErrorState()) {
 | 
				
			||||||
    this->dbus->finishedBackgroundTask("DOOR_OPEN");
 | 
					        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)
 | 
					void ATBDeviceControllerPlugin::onNewVoltage(uint32_t voltage)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user