debug update
This commit is contained in:
parent
d01aed5ddd
commit
3a0dfc4d36
@ -78,6 +78,7 @@ class HBP(HBSYSTEM):
|
||||
self.last_stream = b'\x00'
|
||||
|
||||
def play_voice(self, _rf_src, _tgid, _peer, _slot, _speech):
|
||||
print("starting playback")
|
||||
speech = pkt_gen(_rf_src, _tgid, _peer, _slot, _speech)
|
||||
|
||||
sleep(1)
|
||||
@ -88,6 +89,7 @@ class HBP(HBSYSTEM):
|
||||
break
|
||||
sleep(.058)
|
||||
self.send_system(pkt)
|
||||
print("sent packet")
|
||||
return None
|
||||
|
||||
def dmrd_received(self, _peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data):
|
||||
@ -95,7 +97,7 @@ class HBP(HBSYSTEM):
|
||||
print(int_id(_stream_id), int_id(self.last_stream))
|
||||
self.last_stream = _stream_id
|
||||
|
||||
feedback = Thread(target=self.play_voice(bytes_3(3120102), bytes_3(2), bytes_4(3120119), 0, [words['connected']]))
|
||||
feedback = Thread(target=self.play_voice(bytes_3(3120102), bytes_3(2), bytes_4(3120119), 0, [words['connected'], words['kansas_link']]))
|
||||
feedback.start()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user