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

Constructor should not add itself to LinkManager

parent 15dc9237
......@@ -15,7 +15,6 @@
#include <QSerialPort>
#include <QSerialPortInfo>
#include "SerialLink.h"
#include "LinkManager.h"
#include "QGC.h"
#include <MG.h>
......@@ -72,9 +71,6 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl,
qDebug() << "create SerialLink " << portname << baudRate << hardwareFlowControl
<< parity << dataBits << stopBits;
qDebug() << "m_portName " << m_portName;
LinkManager::instance()->add(this);
qDebug() << "link added to link manager";
}
void SerialLink::requestReset()
......
......@@ -27,8 +27,6 @@
#include <QDebug>
#include <QFile>
#include "LinkManager.h"
#include <string.h>
/// @file
......@@ -53,7 +51,6 @@ MockLink::MockLink(void) :
moveToThread(this);
_loadParams();
QObject::connect(this, &MockLink::_incomingBytes, this, &MockLink::_handleIncomingBytes);
LinkManager::instance()->add(this);
}
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