From 0b23349088f7233cee0b53dfa669ec5b768c3695 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Thu, 11 Jun 2020 09:17:33 -0700 Subject: [PATCH] another gps try --- QnetGateway.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 0538cff..ec5a764 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -993,6 +993,13 @@ void CQnetGateway::ProcessIncomingSD(const SDSVT &dsvt) // this is the first of a two voice-packet pair // get the "size" and type from the first byte sd.size = 0x0FU & c[0]; + if (sd.size > 5) { + printf("got a size of %d\n", sd.size); + sd.size = 5; + } else if (sd.size < 0) { + printf("got a size of %d\n", sd.size); + sd.size = 0; + } int size = sd.size; if (size > 2) size = 2;