Commit b6551cf0 authored by dogmaphobic's avatar dogmaphobic

Reset heartbeat timeout on new connection.

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