We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9057c0 commit 7129a9fCopy full SHA for 7129a9f
1 file changed
meshtastic/mesh_interface.py
@@ -670,7 +670,8 @@ def sendTraceRoute(
670
hopLimit=hopLimit,
671
)
672
# extend timeout based on number of nodes, limit by configured hopLimit
673
- waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit+1)
+ nodes_based_factor = (len(self.nodes) - 1) if self.nodes else (hopLimit + 1)
674
+ waitFactor = max(1, min(nodes_based_factor, hopLimit + 1))
675
self.waitForTraceRoute(waitFactor)
676
677
def onResponseTraceRoute(self, p: dict):
0 commit comments