Fix serial port error meta type
parent
86a5579ff8
commit
0847bb35a5
|
|
@ -34,8 +34,12 @@
|
|||
|
||||
// SLIP: https://tools.ietf.org/html/rfc1055
|
||||
|
||||
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
|
||||
|
||||
ZigbeeInterfaceDeconz::ZigbeeInterfaceDeconz(QObject *parent) : QObject(parent)
|
||||
{
|
||||
qRegisterMetaType<QSerialPort::SerialPortError>();
|
||||
|
||||
m_reconnectTimer = new QTimer(this);
|
||||
m_reconnectTimer->setSingleShot(true);
|
||||
m_reconnectTimer->setInterval(5000);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@
|
|||
|
||||
// SLIP: https://tools.ietf.org/html/rfc1055
|
||||
|
||||
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
|
||||
|
||||
ZigbeeInterfaceNxp::ZigbeeInterfaceNxp(QObject *parent) : QObject(parent)
|
||||
{
|
||||
qRegisterMetaType<QSerialPort::SerialPortError>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue