Fix serial port error meta type

pull/8/head
Simon Stürz 2020-10-20 19:28:53 +02:00
parent 86a5579ff8
commit 0847bb35a5
2 changed files with 6 additions and 0 deletions

View File

@ -34,8 +34,12 @@
// SLIP: https://tools.ietf.org/html/rfc1055 // SLIP: https://tools.ietf.org/html/rfc1055
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
ZigbeeInterfaceDeconz::ZigbeeInterfaceDeconz(QObject *parent) : QObject(parent) ZigbeeInterfaceDeconz::ZigbeeInterfaceDeconz(QObject *parent) : QObject(parent)
{ {
qRegisterMetaType<QSerialPort::SerialPortError>();
m_reconnectTimer = new QTimer(this); m_reconnectTimer = new QTimer(this);
m_reconnectTimer->setSingleShot(true); m_reconnectTimer->setSingleShot(true);
m_reconnectTimer->setInterval(5000); m_reconnectTimer->setInterval(5000);

View File

@ -34,6 +34,8 @@
// SLIP: https://tools.ietf.org/html/rfc1055 // SLIP: https://tools.ietf.org/html/rfc1055
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
ZigbeeInterfaceNxp::ZigbeeInterfaceNxp(QObject *parent) : QObject(parent) ZigbeeInterfaceNxp::ZigbeeInterfaceNxp(QObject *parent) : QObject(parent)
{ {
qRegisterMetaType<QSerialPort::SerialPortError>(); qRegisterMetaType<QSerialPort::SerialPortError>();