Diag: Send operate O000 as last event (after set/reset events)
This commit is contained in:
parent
c23364874e
commit
ccc1c6033f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user