fix another bug
This commit is contained in:
parent
a21393313f
commit
9dc7ce12e1
24
bridge.py
24
bridge.py
@ -440,8 +440,17 @@ class routerOBP(OPENBRIDGE):
|
|||||||
dmrpkt = _data[20:53]
|
dmrpkt = _data[20:53]
|
||||||
_bits = _data[15]
|
_bits = _data[15]
|
||||||
|
|
||||||
|
# Check if subscriber is in STATIC_UNIT
|
||||||
|
for i in STATIC_UNIT:
|
||||||
|
# Subscriber is static. Add 20 years of time.
|
||||||
|
if i[0] == int_id(_rf_src):
|
||||||
|
map_time = pkt_time + time_20
|
||||||
|
logger.debug('Static Unit, update time.')
|
||||||
|
# Proceed as normal
|
||||||
|
else:
|
||||||
|
map_time = pkt_time
|
||||||
# Make/update this unit in the UNIT_MAP cache
|
# Make/update this unit in the UNIT_MAP cache
|
||||||
UNIT_MAP[_rf_src] = (self.name, pkt_time)
|
UNIT_MAP[_rf_src] = (self.name, map_time)
|
||||||
|
|
||||||
|
|
||||||
# Is this a new call stream?
|
# Is this a new call stream?
|
||||||
@ -922,8 +931,19 @@ class routerHBP(HBSYSTEM):
|
|||||||
dmrpkt = _data[20:53]
|
dmrpkt = _data[20:53]
|
||||||
_bits = _data[15]
|
_bits = _data[15]
|
||||||
|
|
||||||
|
# Check if subscriber is in STATIC_UNIT
|
||||||
|
for i in STATIC_UNIT:
|
||||||
|
# Subscriber is static. Add 20 years of time.
|
||||||
|
if i[0] == int_id(_rf_src):
|
||||||
|
map_time = pkt_time + time_20
|
||||||
|
logger.debug('Static Unit, update time.')
|
||||||
|
# Proceed as normal
|
||||||
|
else:
|
||||||
|
map_time = pkt_time
|
||||||
|
|
||||||
|
|
||||||
# Make/update this unit in the UNIT_MAP cache
|
# Make/update this unit in the UNIT_MAP cache
|
||||||
UNIT_MAP[_rf_src] = (self.name, pkt_time)
|
UNIT_MAP[_rf_src] = (self.name, map_time)
|
||||||
|
|
||||||
|
|
||||||
# Is this a new call stream?
|
# Is this a new call stream?
|
||||||
|
Loading…
Reference in New Issue
Block a user