mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Display traceroutes with 0 hops (#4261)
This commit is contained in:
parent
afbec5d02a
commit
343fec2383
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ val MeshProtos.MeshPacket.fullRouteDiscovery: RouteDiscovery?
|
|||
|
||||
val fullRouteBack = listOf(sourceId) + routeBackList + destinationId
|
||||
clearRouteBack()
|
||||
if (hopStart > 0 && snrBackCount > 0) { // otherwise back route is invalid
|
||||
// hopStart was not populated prior to 2.3.0. The bitfield was added in 2.5.0 and
|
||||
// is used to detect versions where hopStart can be trusted to have been set.
|
||||
if ((hopStart > 0 || hasBitfield()) && snrBackCount > 0) { // otherwise back route is invalid
|
||||
addAllRouteBack(fullRouteBack)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue