Diag: Send operate O000 as last event (after set/reset events)

This commit is contained in:
Siegfried Siegert 2025-06-11 14:13:09 +02:00
parent c23364874e
commit ccc1c6033f
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -418,13 +418,6 @@ void DeviceControllerDiag::sub_componentAssessment()
this->private_setDiagEvent(DeviceController::State::W004);
}
if (flag_sendOperate) {
// O000 must not be part of event set
DCMachineEvent O000DCMachineEvent = DCMachineEvent(DeviceController::State::O000,
QUuid::createUuid().toString(QUuid::WithoutBraces).mid(0, 8));
this->private_sendDiagEvent(O000DCMachineEvent, DeviceController::Action::SET);
}
// compare machineEventSets
// New events: present in current but not previous
@ -459,6 +452,15 @@ void DeviceControllerDiag::sub_componentAssessment()
}
qCritical() << "diagReq result: " << DeviceControllerStateStringList;
// send Operate if there is no error
if (flag_sendOperate) {
// O000 must not be part of event set
DCMachineEvent O000DCMachineEvent = DCMachineEvent(DeviceController::State::O000,
QUuid::createUuid().toString(QUuid::WithoutBraces).mid(0, 8));
this->private_sendDiagEvent(O000DCMachineEvent, DeviceController::Action::SET);
}
// finish diag
this->diagRequestTimeoutTimer->stop();