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