Send diagEvent E255 as ERROR
This commit is contained in:
parent
560b6d3221
commit
ec18ac45e4
@ -15,7 +15,7 @@ class ATBMachineEvent : public QEvent
|
|||||||
public:
|
public:
|
||||||
explicit ATBMachineEvent(const QString & id,
|
explicit ATBMachineEvent(const QString & id,
|
||||||
const QString & deviceName, // PTU/PRINTER/DC/...
|
const QString & deviceName, // PTU/PRINTER/DC/...
|
||||||
EVENT_CLASS eventClass, // reason of event: Error/Warning/Alarm
|
EVENT_CLASS eventClass, // reason of event: Error/Warning/Alarm
|
||||||
const QString & name, // 'Event': "E001", "W003"
|
const QString & name, // 'Event': "E001", "W003"
|
||||||
const int state,
|
const int state,
|
||||||
const QString & parameter,
|
const QString & parameter,
|
||||||
|
@ -506,10 +506,8 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result)
|
|||||||
parameter = "no valid data from DeviceController";
|
parameter = "no valid data from DeviceController";
|
||||||
break;
|
break;
|
||||||
case DeviceController::State::E255: // no valid data from DeviceController
|
case DeviceController::State::E255: // no valid data from DeviceController
|
||||||
eventClass = EVENT_CLASS::STATE;
|
eventClass = EVENT_CLASS::ERROR;
|
||||||
parameter = "";
|
parameter = "no valid data from DeviceController";
|
||||||
qCritical() << " ... ignore " << QMetaEnum::fromType<DeviceController::State>().valueToKey(result);
|
|
||||||
return;
|
|
||||||
break;
|
break;
|
||||||
case DeviceController::State::O000: // everything is fine
|
case DeviceController::State::O000: // everything is fine
|
||||||
this->machineEventSet.clear();
|
this->machineEventSet.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user