Send W255 on restart CArun
This commit is contained in:
parent
c1dd20ec4f
commit
ac93e9e631
@ -583,6 +583,10 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result)
|
|||||||
eventClass = EVENT_CLASS::WARNING;
|
eventClass = EVENT_CLASS::WARNING;
|
||||||
parameter = "temperatur warning";
|
parameter = "temperatur warning";
|
||||||
break;
|
break;
|
||||||
|
case DeviceController::State::W255: // restart carun
|
||||||
|
eventClass = EVENT_CLASS::WARNING;
|
||||||
|
parameter = "restart carun";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->lastState = result;
|
this->lastState = result;
|
||||||
@ -619,5 +623,6 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result)
|
|||||||
void DeviceControllerDiag::restartCArun()
|
void DeviceControllerDiag::restartCArun()
|
||||||
{
|
{
|
||||||
this->E255counter = 0;
|
this->E255counter = 0;
|
||||||
|
this->private_sendDiagEvent(DeviceController::State::W255);
|
||||||
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
|
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,8 @@ namespace DeviceController {
|
|||||||
W003,
|
W003,
|
||||||
W004,
|
W004,
|
||||||
|
|
||||||
|
W255,
|
||||||
|
|
||||||
INITIAL_STATE
|
INITIAL_STATE
|
||||||
};
|
};
|
||||||
Q_ENUM_NS(State)
|
Q_ENUM_NS(State)
|
||||||
|
Loading…
Reference in New Issue
Block a user