development computer sync

This commit is contained in:
Cort Buffington
2019-02-27 11:27:11 -06:00
parent 4b90dc7a8c
commit 7e3bf4f16c
2 changed files with 4 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ def pkt_gen(_rf_src, _dst_id, _peer, _slot, _phrase):
# Send each burst, six bursts per Superframe rotating through with the proper EMBED value per burst A-F
for word in _phrase:
for burst in range(0, len(word)):
print(burst)
pkt = b'DMRD' + bytes([SEQ]) + SDP + bytes([_slot << 7 | BURSTBITS[burst % 6]]) + STREAM_ID + (word[burst + 0][0] + EMBED[burst % 6] + word[burst + 0][1]).tobytes() + TAIL
SEQ = (SEQ + 1) % 0x100
yield pkt