Commit 656fa897 authored by Don Gagne's avatar Don Gagne

Constructor should not add itself to LinkManager

parent 15dc9237
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <QSerialPort> #include <QSerialPort>
#include <QSerialPortInfo> #include <QSerialPortInfo>
#include "SerialLink.h" #include "SerialLink.h"
#include "LinkManager.h"
#include "QGC.h" #include "QGC.h"
#include <MG.h> #include <MG.h>
...@@ -72,9 +71,6 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl, ...@@ -72,9 +71,6 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl,
qDebug() << "create SerialLink " << portname << baudRate << hardwareFlowControl qDebug() << "create SerialLink " << portname << baudRate << hardwareFlowControl
<< parity << dataBits << stopBits; << parity << dataBits << stopBits;
qDebug() << "m_portName " << m_portName; qDebug() << "m_portName " << m_portName;
LinkManager::instance()->add(this);
qDebug() << "link added to link manager";
} }
void SerialLink::requestReset() void SerialLink::requestReset()
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include <QDebug> #include <QDebug>
#include <QFile> #include <QFile>
#include "LinkManager.h"
#include <string.h> #include <string.h>
/// @file /// @file
...@@ -53,7 +51,6 @@ MockLink::MockLink(void) : ...@@ -53,7 +51,6 @@ MockLink::MockLink(void) :
moveToThread(this); moveToThread(this);
_loadParams(); _loadParams();
QObject::connect(this, &MockLink::_incomingBytes, this, &MockLink::_handleIncomingBytes); QObject::connect(this, &MockLink::_incomingBytes, this, &MockLink::_handleIncomingBytes);
LinkManager::instance()->add(this);
} }
MockLink::~MockLink(void) MockLink::~MockLink(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment