From 695154317c340199da515fcfad1fb0343225b4e8 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 8 Jan 2022 14:25:59 +0000 Subject: [PATCH] change seq for packets > 1 --- bridge_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index 7172919..74e3033 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -1712,7 +1712,7 @@ class routerOBP(OPENBRIDGE): logger.warning("(%s) *PacketControl* Duplicate sequence number %s, disgarding. Stream ID:, %s TGID: %s",self._system,_seq,int_id(_stream_id),int_id(_dst_id)) return #Duplicate DMR payload to previuos packet (by Crc32) - if _seq != 0 and _pkt_crc in self.STATUS[_stream_id]['crcs']: + if self.STATUS[_stream_id]['packets'] > 1 and _pkt_crc in self.STATUS[_stream_id]['crcs']: logger.warning("(%s) *PacketControl* DMR packet payload with Crc32: %s seen before in this stream, disgarding. Stream ID:, %s TGID: %s: SEQ:%s packets: %s %s ",self._system,_pkt_crc,int_id(_stream_id),int_id(_dst_id),_seq, self.STATUS[_stream_id]['packets'],self.STATUS[_stream_id]['crcs']) return #Inbound out-of-order packets