Diag: getCurrentMachineState: return previousState ...

... if diag is running.
This method is currently not used, but maybe in future it could be
usefull to read current state.
This commit is contained in:
Siegfried Siegert 2025-05-12 16:17:23 +02:00
parent f8757b352d
commit 12be31ee49
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -98,6 +98,9 @@ bool DeviceControllerDiag::isOperatingState()
QSet<DCMachineEvent> DeviceControllerDiag::getCurrentMachineState()
{
// ensure that currentMachineEventSet is delivered here
if (this->isRequestRunning) return this->previousMachineEventSet;
return this->machineEventSet;
}