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 ...@@ -495,15 +495,31 @@ void UASParameterCommsMgr::receivedParameterUpdate(int uas, int compId, int para
emit parameterListUpToDate(); emit parameterListUpToDate();
} }
else { else {
qDebug() << "missCount:" << missCount << "missWriteCount:" << missWriteCount; //reset the timeout timer since we received one
setRetransmissionGuardEnabled(true);
if (missCount < 4) { //qDebug() << "missCount:" << missCount << "missWriteCount:" << missWriteCount;
foreach (int key, transmissionMissingPackets.keys()) { //if (missCount < 4) {
QList<int>* list = transmissionMissingPackets.value(key); // foreach (int key, transmissionMissingPackets.keys()) {
qDebug() << "Component" << key << "missing params:" << list ; // QList<int>* list = transmissionMissingPackets.value(key);
}
} // if (list && list->count()) {
setRetransmissionGuardEnabled(true); //reset the timeout timer since we received one // 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