From 3c1928eb65d5142585cac876ffdd2e54b1814532 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 19 Jan 2022 22:54:32 +0000 Subject: [PATCH] print hops --- hblink.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 5a8066b..37c617d 100755 --- a/hblink.py +++ b/hblink.py @@ -396,9 +396,10 @@ class OPENBRIDGE(DatagramProtocol): #_data = b''.join([_data[:5],_data[12:]]) _data = b''.join([DMRD,_data[4:]]) - _inthops = int.from_bytes(_hops,'big') + 1 + #_inthops = int.from_bytes(_hops,'big') + _inthops = _hops +1 _hops = _inthops.to_bytes(1,'big') - print(_inthops) + #print(_hops) # 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) #Silently treat a DMRD packet like a keepalive - this is because it's traffic and the