From 27886112379cc2a0929f8b4c6a6a4fc46bff87a0 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 25 May 2022 01:51:53 +0100 Subject: [PATCH] fix log spamming more --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 9a933e8..8254191 100755 --- a/hblink.py +++ b/hblink.py @@ -532,9 +532,9 @@ class OPENBRIDGE(DatagramProtocol): elif _packet[:4] == DMRF: - _stream_id = _data[16:20] - logger.warning('(%s) *ProtoControl* Protocols 2 and 3 are no longer supported',self._system) + _stream_id = _packet[16:20] if _stream_id not in self._laststrid: + logger.warning('(%s) *ProtoControl* Protocols 2 and 3 are no longer supported',self._system) self.send_bcsq(_dst_id,_stream_id) self._laststrid.append(_stream_id) return