Diag: set W255 only once

This commit is contained in:
Siegfried Siegert 2025-06-24 15:03:21 +02:00
parent 40acd0e0c4
commit 1165c4b92f
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -715,8 +715,10 @@ void DeviceControllerDiag::restartCArun()
DCMachineEvent W255Event = DCMachineEvent(DeviceController::State::W255); DCMachineEvent W255Event = DCMachineEvent(DeviceController::State::W255);
if (!this->previousMachineEventSet.contains(W255Event)) {
machineEventSet.insert(W255Event); machineEventSet.insert(W255Event);
private_sendDiagEvent(W255Event, DeviceController::Action::SET); private_sendDiagEvent(W255Event, DeviceController::Action::SET);
}
QProcess::startDetached("/bin/systemctl", {"restart", "carun"}); QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
} }