it's add not subtract

pull/12/head
Tom Early 7 years ago
parent 3d314330ef
commit b5f64f494c

@ -1118,10 +1118,10 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b
int diff = int(0x3FU & g2buf.ctrl) - int(lastctrl);
if (diff < 0)
diff = 21 - diff;
diff = 21 + diff;
if (diff > 1 && diff < 4) { // fill up to 3 missing voice frames
if (LOG_DEBUG)
fprintf(stderr, "Warning: inserting %d missing voice frames\n", diff - 1);
fprintf(stderr, "Warning: inserting %d missing voice frame(s)\n", diff - 1);
SDSVT dsvt;
memcpy(dsvt.title, g2buf.title, 14U); // everything but the ctrl and voice data
while (--diff > 0) {

Loading…
Cancel
Save

Powered by TurnKey Linux.