Diag: set W255 only once
This commit is contained in:
parent
40acd0e0c4
commit
1165c4b92f
@ -715,8 +715,10 @@ void DeviceControllerDiag::restartCArun()
|
|||||||
|
|
||||||
|
|
||||||
DCMachineEvent W255Event = DCMachineEvent(DeviceController::State::W255);
|
DCMachineEvent W255Event = DCMachineEvent(DeviceController::State::W255);
|
||||||
machineEventSet.insert(W255Event);
|
if (!this->previousMachineEventSet.contains(W255Event)) {
|
||||||
private_sendDiagEvent(W255Event, DeviceController::Action::SET);
|
machineEventSet.insert(W255Event);
|
||||||
|
private_sendDiagEvent(W255Event, DeviceController::Action::SET);
|
||||||
|
}
|
||||||
|
|
||||||
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
|
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user