Commit 6a173001 authored by tstellanova's avatar tstellanova

reset timeout timer every time we receive a param

parent cdb33d12
......@@ -495,15 +495,31 @@ void UASParameterCommsMgr::receivedParameterUpdate(int uas, int compId, int para
emit parameterListUpToDate();
}
else {
qDebug() << "missCount:" << missCount << "missWriteCount:" << missWriteCount;
//reset the timeout timer since we received one
setRetransmissionGuardEnabled(true);
if (missCount < 4) {
foreach (int key, transmissionMissingPackets.keys()) {
QList<int>* list = transmissionMissingPackets.value(key);
qDebug() << "Component" << key << "missing params:" << list ;
}
}
setRetransmissionGuardEnabled(true); //reset the timeout timer since we received one
//qDebug() << "missCount:" << missCount << "missWriteCount:" << missWriteCount;
//if (missCount < 4) {
// foreach (int key, transmissionMissingPackets.keys()) {
// QList<int>* list = transmissionMissingPackets.value(key);
// if (list && list->count()) {
// QString yazza = QString().sprintf("Component %d missing %d: ",key,list->count());
// for (int i = 0; i < list->count(); i++) {
// int val = list->at(i);
// yazza.append( QString().sprintf("%d,",val) );
// }
// qDebug() << yazza;
// }
// else {
// //very suspicious...no actual missing items??
// transmissionMissingPackets.remove(key);
// break;
// }
// }
//}
}
}
......
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