Send diagEvent E255 as ERROR

This commit is contained in:
Siegfried Siegert 2024-05-16 15:47:14 +02:00
parent 560b6d3221
commit ec18ac45e4
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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();