Work with NAT

This commit is contained in:
Cort Buffington 2013-11-21 18:30:02 -06:00
parent c08ecd5905
commit ce28dec967

View File

@ -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