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