From 1ffa49f0c9f3eb510c75d492266d9b14f2c3fbb0 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 21 Feb 2022 22:48:02 +0000 Subject: [PATCH] Allow 5s instead of 2s for packet validity --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 4ccaa11..391886b 100755 --- a/hblink.py +++ b/hblink.py @@ -387,8 +387,8 @@ class OPENBRIDGE(DatagramProtocol): return #Discard old packets - if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 2): - logger.warning('(%s) Packet more than 2s old!, discarding', self._system) + if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 5): + logger.warning('(%s) Packet more than 5s old!, discarding', self._system) return #Increment max hops