Sequence number fix (error count was inflated because I was not counting non-voice frames)

This commit is contained in:
Michael Zingman 2017-12-10 18:04:39 -05:00
parent f73a0b987b
commit e0b979591e
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ class HB_BRIDGE(HBSYSTEM):
_dmr_frame = BitArray('0x'+ahex(_data[20:]))
_ambe = _dmr_frame[0:108] + _dmr_frame[156:264]
self.hb_ambe.export_voice(_tx_slot, _seq, _ambe.tobytes())
else:
_tx_slot.lastSeq = _seq
# The methods below are overridden becuse the launchUDP thread can also wite to a master or client async and confuse the master
# A lock is used to synchronize the two threads so that the resource is protected