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:
Siegfried Siegert 2025-05-12 16:10:40 +02:00
parent 4567aed6d1
commit f8757b352d
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -61,6 +61,7 @@ void DeviceControllerDiag::diagRequest()
qCritical() << "DeviceControllerDiag::diagRequest() is already running";
return;
}
this->machineEventSet.clear();
this->isRequestRunning = true;
this->diagRequestTimeoutTimer->start();
@ -452,12 +453,12 @@ void DeviceControllerDiag::sub_componentAssessment()
this->flagInterruptDiag = false;
this->previousMachineEventSet = machineEventSet;
this->machineEventSet.clear();
if (this->isDiagBackgroundTask) {
this->isDiagBackgroundTask = false;
this->dbus->finishedBackgroundTask("E255");
}
}