revert change, remove UNIT_MAP changes
This commit is contained in:
parent
e736893543
commit
a21393313f
13
bridge.py
13
bridge.py
@ -165,7 +165,7 @@ def rule_timer_loop():
|
|||||||
|
|
||||||
_then = _now - 60 * UNIT_TIME
|
_then = _now - 60 * UNIT_TIME
|
||||||
remove_list = []
|
remove_list = []
|
||||||
logger.info(UNIT_MAP)
|
#logger.info(UNIT_MAP)
|
||||||
for unit in UNIT_MAP:
|
for unit in UNIT_MAP:
|
||||||
if UNIT_MAP[unit][1] < (_then):
|
if UNIT_MAP[unit][1] < (_then):
|
||||||
remove_list.append(unit)
|
remove_list.append(unit)
|
||||||
@ -440,12 +440,7 @@ class routerOBP(OPENBRIDGE):
|
|||||||
dmrpkt = _data[20:53]
|
dmrpkt = _data[20:53]
|
||||||
_bits = _data[15]
|
_bits = _data[15]
|
||||||
|
|
||||||
if time_20 == UNIT_MAP[_rf_src][1]:
|
|
||||||
logger.info('Static Unit, no change in UNIT_MAP')
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
# Make/update this unit in the UNIT_MAP cache
|
# Make/update this unit in the UNIT_MAP cache
|
||||||
logger.ingo('Updated subscriber system')
|
|
||||||
UNIT_MAP[_rf_src] = (self.name, pkt_time)
|
UNIT_MAP[_rf_src] = (self.name, pkt_time)
|
||||||
|
|
||||||
|
|
||||||
@ -927,13 +922,7 @@ class routerHBP(HBSYSTEM):
|
|||||||
dmrpkt = _data[20:53]
|
dmrpkt = _data[20:53]
|
||||||
_bits = _data[15]
|
_bits = _data[15]
|
||||||
|
|
||||||
# If time matches time in static units, do not update.
|
|
||||||
if time_20 == UNIT_MAP[_rf_src][1]:
|
|
||||||
logger.info('Static Unit, no change in UNIT_MAP')
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
# Make/update this unit in the UNIT_MAP cache
|
# Make/update this unit in the UNIT_MAP cache
|
||||||
logger.ingo('Updated subscriber system')
|
|
||||||
UNIT_MAP[_rf_src] = (self.name, pkt_time)
|
UNIT_MAP[_rf_src] = (self.name, pkt_time)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user