options
Simon 4 years ago
parent 3c1928eb65
commit e112f47fd5

@ -144,7 +144,7 @@ class OPENBRIDGE(DatagramProtocol):
return return
if not _hops: if not _hops:
_hops = 0 _hops = 1
_hops = _hops.to_bytes(1,'big') _hops = _hops.to_bytes(1,'big')
@ -399,7 +399,7 @@ class OPENBRIDGE(DatagramProtocol):
#_inthops = int.from_bytes(_hops,'big') #_inthops = int.from_bytes(_hops,'big')
_inthops = _hops +1 _inthops = _hops +1
_hops = _inthops.to_bytes(1,'big') _hops = _inthops.to_bytes(1,'big')
#print(_hops) print(_hops)
# Userland actions -- typically this is the function you subclass for an application # Userland actions -- typically this is the function you subclass for an application
self.dmrd_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data,_hash,_hops) self.dmrd_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data,_hash,_hops)
#Silently treat a DMRD packet like a keepalive - this is because it's traffic and the #Silently treat a DMRD packet like a keepalive - this is because it's traffic and the

Loading…
Cancel
Save

Powered by TurnKey Linux.