Commit 8d860fdc authored by tstellanova's avatar tstellanova

fix lastTimerReset bug

parent 0af58499
...@@ -237,7 +237,7 @@ void UASParameterCommsMgr::retransmissionGuardTick() ...@@ -237,7 +237,7 @@ void UASParameterCommsMgr::retransmissionGuardTick()
quint64 curTime = QGC::groundTimeMilliseconds(); quint64 curTime = QGC::groundTimeMilliseconds();
//Workaround for an apparent Qt bug that causes retransmission guard timer to fire prematurely (350ms) //Workaround for an apparent Qt bug that causes retransmission guard timer to fire prematurely (350ms)
quint64 elapsed = (curTime = lastTimerReset); quint64 elapsed = (curTime - lastTimerReset);
if (elapsed < transmissionTimeout) { if (elapsed < transmissionTimeout) {
qDebug() << "retransmissionGuardTick elapsed:" << (curTime - lastTimerReset); qDebug() << "retransmissionGuardTick elapsed:" << (curTime - lastTimerReset);
//reset the guard timer: it fired prematurely //reset the guard timer: it fired prematurely
......
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