Diag: restart carun is M0255 (was W255)
This commit is contained in:
parent
577411289e
commit
5c40e088aa
@ -144,7 +144,7 @@ void DeviceControllerDiag::private_startDiag()
|
|||||||
if (result) {
|
if (result) {
|
||||||
qCritical() << "DeviceControllerDiag::private_startDiag() DCdata is valid";
|
qCritical() << "DeviceControllerDiag::private_startDiag() DCdata is valid";
|
||||||
this->machineEventSet.remove(DCMachineEvent(DeviceController::State::E255));
|
this->machineEventSet.remove(DCMachineEvent(DeviceController::State::E255));
|
||||||
this->machineEventSet.remove(DCMachineEvent(DeviceController::State::W255));
|
this->machineEventSet.remove(DCMachineEvent(DeviceController::State::M0255));
|
||||||
QTimer::singleShot(200, this, &DeviceControllerDiag::sys_superviseSystem);
|
QTimer::singleShot(200, this, &DeviceControllerDiag::sys_superviseSystem);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -680,8 +680,8 @@ void DeviceControllerDiag::private_sendDiagEvent(DCMachineEvent result, DeviceCo
|
|||||||
eventClass = EVENT_CLASS::WARNING;
|
eventClass = EVENT_CLASS::WARNING;
|
||||||
parameter = "temperatur warning";
|
parameter = "temperatur warning";
|
||||||
break;
|
break;
|
||||||
case DeviceController::State::W255: // restart carun
|
case DeviceController::State::M0255: // restart carun
|
||||||
eventClass = EVENT_CLASS::WARNING;
|
eventClass = EVENT_CLASS::STATE;
|
||||||
parameter = "restart carun";
|
parameter = "restart carun";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -722,10 +722,10 @@ void DeviceControllerDiag::restartCArun()
|
|||||||
this->E255counter = 0;
|
this->E255counter = 0;
|
||||||
|
|
||||||
|
|
||||||
DCMachineEvent W255Event = DCMachineEvent(DeviceController::State::W255);
|
DCMachineEvent M0255Event = DCMachineEvent(DeviceController::State::M0255);
|
||||||
if (!this->previousMachineEventSet.contains(W255Event)) {
|
if (!this->previousMachineEventSet.contains(M0255Event)) {
|
||||||
machineEventSet.insert(W255Event);
|
machineEventSet.insert(M0255Event);
|
||||||
private_sendDiagEvent(W255Event, DeviceController::Action::SET);
|
private_sendDiagEvent(M0255Event, DeviceController::Action::SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
|
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
|
||||||
|
@ -49,6 +49,7 @@ namespace DeviceController {
|
|||||||
M0252, // cashbox door open
|
M0252, // cashbox door open
|
||||||
M0253, // service or battery door is open
|
M0253, // service or battery door is open
|
||||||
M0254, // no valid data from DC
|
M0254, // no valid data from DC
|
||||||
|
M0255, // restart carun
|
||||||
|
|
||||||
E255,
|
E255,
|
||||||
|
|
||||||
@ -57,8 +58,6 @@ namespace DeviceController {
|
|||||||
W003,
|
W003,
|
||||||
W004,
|
W004,
|
||||||
|
|
||||||
W255,
|
|
||||||
|
|
||||||
INITIAL_STATE
|
INITIAL_STATE
|
||||||
};
|
};
|
||||||
Q_ENUM_NS(State)
|
Q_ENUM_NS(State)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user