Slice wrong

This commit is contained in:
Simon 2021-03-28 11:47:30 +01:00
parent 185125b96f
commit b1372bb488
1 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ class playback(HBSYSTEM):
logger.info('(%s) *START RECORDING* STREAM ID: %s SUB: %s (%s) REPEATER: %s (%s) TGID %s (%s), TS %s', \
self._system, int_id(_stream_id), get_alias(_rf_src, subscriber_ids), int_id(_rf_src), get_alias(_peer_id, peer_ids), int_id(_peer_id), get_alias(_dst_id, talkgroup_ids), int_id(_dst_id), _slot)
#Change the stream ID
_data = _data[:15] + _new_stream_id + _data[21:]
_data = _data[:16] + _new_stream_id + _data[21:]
self.CALL_DATA.append(_data)
self.STATUS[_slot]['RX_STREAM_ID'] = _stream_id
return
@ -134,7 +134,7 @@ class playback(HBSYSTEM):
if (_frame_type == const.HBPF_DATA_SYNC) and (_dtype_vseq == const.HBPF_SLT_VTERM) and (self.STATUS[_slot]['RX_TYPE'] != const.HBPF_SLT_VTERM) and (self.CALL_DATA):
call_duration = pkt_time - self.STATUS['RX_START']
#Change the stream ID
_data = _data[:15] + _new_stream_id + _data[21:]
_data = _data[:16] + _new_stream_id + _data[21:]
self.CALL_DATA.append(_data)
logger.info('(%s) *END RECORDING* STREAM ID: %s', self._system, int_id(_stream_id))
sleep(2)
@ -152,7 +152,7 @@ class playback(HBSYSTEM):
#Change the stream ID
print(_data)
print("----")
_data = _data[:15] + _new_stream_id + _data[21:]
_data = _data[:16] + _new_stream_id + _data[21:]
self.CALL_DATA.append(_data)
print(_data)