Diag: clear machineEventSet on the begin of DCDiag ...
... not on end. This is to keep current machineEventSet during normal IDLE process.
This commit is contained in:
parent
4567aed6d1
commit
f8757b352d
@ -61,6 +61,7 @@ void DeviceControllerDiag::diagRequest()
|
|||||||
qCritical() << "DeviceControllerDiag::diagRequest() is already running";
|
qCritical() << "DeviceControllerDiag::diagRequest() is already running";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this->machineEventSet.clear();
|
||||||
this->isRequestRunning = true;
|
this->isRequestRunning = true;
|
||||||
this->diagRequestTimeoutTimer->start();
|
this->diagRequestTimeoutTimer->start();
|
||||||
|
|
||||||
@ -452,12 +453,12 @@ void DeviceControllerDiag::sub_componentAssessment()
|
|||||||
this->flagInterruptDiag = false;
|
this->flagInterruptDiag = false;
|
||||||
|
|
||||||
this->previousMachineEventSet = machineEventSet;
|
this->previousMachineEventSet = machineEventSet;
|
||||||
this->machineEventSet.clear();
|
|
||||||
|
|
||||||
if (this->isDiagBackgroundTask) {
|
if (this->isDiagBackgroundTask) {
|
||||||
this->isDiagBackgroundTask = false;
|
this->isDiagBackgroundTask = false;
|
||||||
this->dbus->finishedBackgroundTask("E255");
|
this->dbus->finishedBackgroundTask("E255");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user