Fix/2640 rangetest hops (#2979)

pull/2986/head
DaneEvans 2025-09-06 02:53:39 +10:00 zatwierdzone przez GitHub
rodzic fd40f8679b
commit f78c440c61
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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