NAT improvements

This commit is contained in:
Cort Buffington 2013-11-21 18:34:06 -06:00
parent ce28dec967
commit a46a35dbd1
1 changed files with 2 additions and 3 deletions

View File

@ -163,9 +163,8 @@ def int_id(_hex_string):
# Re-Write Source Radio-ID (DMR NAT)
#
def dmr_nat(_data, _nat_id):
src_radio_id = _data[6:9]
_data = _data.replace(src_radio_id, _nat_id)
def dmr_nat(_data, _src_id, _nat_id):
_data = _data.replace(_src_id, _nat_id)
return _data
# Lookup text data for numeric IDs