From d0df2469d6adbacf0ce2f3d8c6cb8b68005acb1b Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 17 Apr 2021 17:59:46 +0100 Subject: [PATCH] Stop people creating TG bridges for TG 4000 and 5000 --- bridge_master.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 0dbdcc8..60e642b 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -1765,7 +1765,7 @@ class routerHBP(HBSYSTEM): self.STATUS[_slot]['RX_LC'] = LC_OPT + _dst_id + _rf_src #Create default bridge for unknown TG - if int_id(_dst_id) >= 5 and int_id(_dst_id) != 9 and (str(int_id(_dst_id)) not in BRIDGES): + if int_id(_dst_id) >= 5 and int_id(_dst_id) != 9 and int_id(_dst_id) != 4000 and int_id(_dst_id) != 5000 and (str(int_id(_dst_id)) not in BRIDGES): logger.info('(%s) Bridge for TG %s does not exist. Creating as User Activated. Timeout %s',self._system, int_id(_dst_id),CONFIG['SYSTEMS'][self._system]['DEFAULT_UA_TIMER']) make_single_bridge(_dst_id,self._system,_slot,CONFIG['SYSTEMS'][self._system]['DEFAULT_UA_TIMER']) @@ -1795,7 +1795,6 @@ class routerHBP(HBSYSTEM): self.STATUS[_slot]['_bcsq'] = True return - _int_seq = _seq #Duplicate handling# #Duplicate complete packet if self.STATUS[_slot]['lastData'] and self.STATUS[_slot]['lastData'] == _data and _seq > 1: