Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
656fa897
Commit
656fa897
authored
Nov 26, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constructor should not add itself to LinkManager
parent
15dc9237
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
SerialLink.cc
src/comm/SerialLink.cc
+0
-4
MockLink.cc
src/qgcunittest/MockLink.cc
+0
-3
No files found.
src/comm/SerialLink.cc
View file @
656fa897
...
@@ -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
()
...
...
src/qgcunittest/MockLink.cc
View file @
656fa897
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment