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 612a932b9f
commit 6e6a63719f
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -58,6 +58,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();
@ -432,7 +433,6 @@ void DeviceControllerDiag::sub_componentAssessment()
this->flagInterruptDiag = false; this->flagInterruptDiag = false;
this->previousMachineEventSet = machineEventSet; this->previousMachineEventSet = machineEventSet;
this->machineEventSet.clear();
} }