Work with NAT
This commit is contained in:
parent
c08ecd5905
commit
ce28dec967
@ -165,7 +165,7 @@ def int_id(_hex_string):
|
|||||||
#
|
#
|
||||||
def dmr_nat(_data, _nat_id):
|
def dmr_nat(_data, _nat_id):
|
||||||
src_radio_id = _data[6:9]
|
src_radio_id = _data[6:9]
|
||||||
_data = re.sub(src_radio_id, _nat_id, _data)
|
_data = _data.replace(src_radio_id, _nat_id)
|
||||||
return _data
|
return _data
|
||||||
|
|
||||||
# Lookup text data for numeric IDs
|
# Lookup text data for numeric IDs
|
||||||
|
Loading…
Reference in New Issue
Block a user