skip packets that aren't in sequence

pull/14/head
Tom Early 7 years ago
parent e502f3e888
commit b4f5be0633

@ -1138,8 +1138,13 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b
}
}
if ((lastctrl + 1U) % 21U == (0x3FU & g2buf.ctrl)) {
lastctrl = (0x3FU & g2buf.ctrl);
Gate2Modem[i].Write(g2buf.title, 27);
} else {
if (LOG_DEBUG)
fprintf(stderr, "Warning: Ignoring packet because its ctrl=0x%02uU and lastctrl=0x%02uU\n", g2buf.ctrl, lastctrl);
}
/* timeit */
time(&toRptr[i].last_time);

Loading…
Cancel
Save

Powered by TurnKey Linux.