Re-enable sending DC-State after closing doors

This commit is contained in:
Siegfried Siegert 2024-06-03 11:53:58 +02:00
parent d66363da46
commit 962cd01eac
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
3 changed files with 19 additions and 0 deletions

View File

@ -540,6 +540,8 @@ void ATBDeviceControllerPlugin::onCBinAndAllDoorsClosed()
{ {
qCritical() << "ATBDeviceControllerPlugin::onCBinAndAllDoorsClosed()"; qCritical() << "ATBDeviceControllerPlugin::onCBinAndAllDoorsClosed()";
this->diag->diagReInit();
QTimer::singleShot(2000, this, SIGNAL(requestModeIDLE())); QTimer::singleShot(2000, this, SIGNAL(requestModeIDLE()));
this->dbus->finishedBackgroundTask("DOOR_OPEN"); this->dbus->finishedBackgroundTask("DOOR_OPEN");

View File

@ -36,6 +36,12 @@ void DeviceControllerDiag::init(hwinf *hw, QObject* eventReceiver)
} }
void DeviceControllerDiag::diagReInit()
{
this->machineEventSet.clear();
this->_isErrorState = false;
}
void DeviceControllerDiag::diagRequest() void DeviceControllerDiag::diagRequest()
{ {
qCritical() << "DeviceControllerDiag::diagRequest()"; qCritical() << "DeviceControllerDiag::diagRequest()";

View File

@ -80,9 +80,20 @@ public:
bool isOperatingState(); bool isOperatingState();
QSet<DeviceController::State> getCurrentMachineState(); QSet<DeviceController::State> getCurrentMachineState();
public slots: public slots:
/**
* start diag request
*/
void diagRequest(); void diagRequest();
/**
* reset / re-init diag request.
* Called e.g. when doors are closed.
*/
void diagReInit();
signals: signals:
void diagResponse(ATBMachineEvent* machineEvent); void diagResponse(ATBMachineEvent* machineEvent);