From d9057c0aafe28507f3bea8c0c2ec073f93db0ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 29 Nov 2025 15:40:33 +0100 Subject: [PATCH] Fix traceroute timeout for case of 0-hops It was not waiting any time. --- meshtastic/mesh_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 7052bc5f..18b97b7a 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -670,7 +670,7 @@ def sendTraceRoute( hopLimit=hopLimit, ) # extend timeout based on number of nodes, limit by configured hopLimit - waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit) + waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit+1) self.waitForTraceRoute(waitFactor) def onResponseTraceRoute(self, p: dict):