Call diagReqeust() on door opened signals

This commit is contained in:
Siegfried Siegert 2023-07-27 15:30:24 +02:00
parent 4187d8044d
commit 13f1d84cc0
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -333,6 +333,9 @@ void ATBDeviceControllerPlugin::onServiceDoorOpened()
{
qCritical() << "ATBDeviceControllerPlugin::onServiceDoorOpened()";
// ... to detect alarm etc.
this->diag->diagRequest();
// switch to mode service
emit this->requestModeSERVICE();
@ -347,6 +350,12 @@ void ATBDeviceControllerPlugin::onVaultDoorOpened()
// - create an HealthEvent (-> ISMAS-Event)
qCritical() << "ATBDeviceControllerPlugin::onVaultDoorOpened()";
// ... to detect alarm etc.
this->diag->diagRequest();
// this is started here because we want to keep ptu awake in order to get
// coin box removed / inserted etc.
// BackgroundTask("ACCOUNT") is finished, if account message is sent to ISMAS!
this->dbus->startBackgroundTask("ACCOUNT");
// do not: emit this->requestModeSERVICE();