From 12ffffde8b44f9a64882fffec36572e17f671520 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 8 Jan 2022 15:14:20 +0000 Subject: [PATCH] apply same fixes to HBP --- bridge_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 798a64d..8cdbfe5 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -2433,8 +2433,8 @@ class routerHBP(HBSYSTEM): 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 _pkt_crc in self.STATUS[_slot]['crcs']: - logger.warning("(%s) *PacketControl* DMR packet payload with Crc32: %s seen before in this stream, disgarding. Stream ID:, %s TGID: %s",self._system,_pkt_crc,int_id(_stream_id),int_id(_dst_id)) + if self.STATUS.[_slot]['packets'] > 1 and _pkt_crc in self.STATUS[_slot]['crcs']: + logger.warning("(%s) *PacketControl* DMR packet payload with Crc32: %s seen before in this stream, disgarding. Stream ID:, %s TGID: %s, SEQ: %s",self._system,_pkt_crc,int_id(_stream_id),int_id(_dst_id),_seq) return #Inbound out-of-order packets if _seq and self.STATUS[_slot]['lastSeq'] and (_seq != 1) and (_seq < self.STATUS[_slot]['lastSeq']):