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:
parent
6e6a63719f
commit
9ba61d0748
@ -95,6 +95,9 @@ bool DeviceControllerDiag::isOperatingState()
|
|||||||
|
|
||||||
QSet<DCMachineEvent> DeviceControllerDiag::getCurrentMachineState()
|
QSet<DCMachineEvent> DeviceControllerDiag::getCurrentMachineState()
|
||||||
{
|
{
|
||||||
|
// ensure that currentMachineEventSet is delivered here
|
||||||
|
if (this->isRequestRunning) return this->previousMachineEventSet;
|
||||||
|
|
||||||
return this->machineEventSet;
|
return this->machineEventSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user