debugging, don't use

This commit is contained in:
Cort Buffington 2015-08-12 09:02:49 -05:00
parent 8d8f5a6eed
commit fc18a2f3c0
1 changed files with 4 additions and 2 deletions

View File

@ -79,6 +79,7 @@ class playIPSC(IPSC):
#_tmp_data = _tmp_data.replace(_src_sub, NETWORK[_network]['LOCAL']['RADIO_ID'])
# Re-Write IPSC timeslot value
'''
_call_info = int_id(_data[17:18])
if _ts == 0:
_call_info &= ~(1 << 5)
@ -86,9 +87,10 @@ class playIPSC(IPSC):
_call_info |= 1 << 5
_call_info = chr(_call_info)
_tmp_data = _tmp_data[:17] + _call_info + _tmp_data[18:]
'''
# Re-Write DMR timeslot value
# Determine if the slot is present, so we can translate if need be
'''
if _burst_data_type == BURST_DATA_TYPE['SLOT1_VOICE'] or _burst_data_type == BURST_DATA_TYPE['SLOT2_VOICE']:
# Re-Write timeslot if necessary...
if _ts == 0:
@ -96,7 +98,7 @@ class playIPSC(IPSC):
elif _ts == 1:
_burst_data_type = BURST_DATA_TYPE['SLOT2_VOICE']
_tmp_data = _tmp_data[:30] + _burst_data_type + _tmp_data[31:]
'''
_tmp_data = self.hashed_packet(NETWORK[_network]['LOCAL']['AUTH_KEY'], _tmp_data)
# Send the packet to all peers in the target IPSC
self.send_to_ipsc(_tmp_data)