Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
70d81ad3
Commit
70d81ad3
authored
Dec 20, 2014
by
Don Gagne
Browse files
Disconnect timer on link disconnect
This prevents mavlink signals from being emitted after link is disconnected
parent
09818685
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qgcunittest/MockLink.cc
View file @
70d81ad3
...
...
@@ -137,6 +137,10 @@ void MockLink::run(void)
_timer50HzTasks
.
start
(
20
);
exec
();
QObject
::
disconnect
(
&
_timer1HzTasks
,
&
QTimer
::
timeout
,
this
,
&
MockLink
::
_run1HzTasks
);
QObject
::
disconnect
(
&
_timer10HzTasks
,
&
QTimer
::
timeout
,
this
,
&
MockLink
::
_run10HzTasks
);
QObject
::
disconnect
(
&
_timer50HzTasks
,
&
QTimer
::
timeout
,
this
,
&
MockLink
::
_run50HzTasks
);
}
void
MockLink
::
_run1HzTasks
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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