Fix/2640 rangetest hops (#2979)

This commit is contained in:
DaneEvans
2025-09-06 02:53:39 +10:00
committed by GitHub
parent fd40f8679b
commit f78c440c61
@@ -1177,7 +1177,9 @@ class MeshService :
// Generate our own hopsAway, comparing hopStart to hopLimit.
it.hopsAway =
if (packet.hopStart == 0 || packet.hopLimit > packet.hopStart) {
if (packet.decoded.portnumValue == Portnums.PortNum.RANGE_TEST_APP_VALUE) {
0 // These don't come with the .hop params, but do not propogate, so they must be 0
} else if (packet.hopStart == 0 || packet.hopLimit > packet.hopStart) {
-1
} else {
packet.hopStart - packet.hopLimit