Commit ee548470 authored by Don Gagne's avatar Don Gagne

Merge pull request #1482 from dogmaphobic/reconnectIssue

Reset heartbeat timeout on new connection.
parents 2b7cc309 b6551cf0
......@@ -334,6 +334,9 @@ void MainToolBar::_setActiveUAS(UASInterface* active)
QGCUASParamManagerInterface* paramMgr = _mav->getParamManager();
Q_ASSERT(paramMgr);
connect(paramMgr, SIGNAL(parameterListProgress(float)), this, SLOT(_setProgressBarValue(float)));
// Reset connection lost (if any)
_currentHeartbeatTimeout = 0;
emit heartbeatTimeoutChanged(_currentHeartbeatTimeout);
}
// Let toolbar know about it
emit mavPresentChanged(_mav != NULL);
......
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