mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Merge 0172afdfa6 into 3322257cfd
This commit is contained in:
commit
d798740684
1 changed files with 7 additions and 2 deletions
|
|
@ -66,8 +66,13 @@ private fun formatTraceroutePath(nodesList: List<String>, snrList: List<Int>): S
|
|||
List(nodesList.size - 1) { -128 }
|
||||
}
|
||||
.map { snr ->
|
||||
val str = if (snr == -128) "?" else "${snr / 4f}"
|
||||
"⇊ $str dB"
|
||||
val str = when (snr) {
|
||||
-128 -> "? dB"
|
||||
-127 -> "MQTT"
|
||||
127 -> "UDP"
|
||||
else -> "${snr / 4f} dB"
|
||||
}
|
||||
"⇊ $str"
|
||||
}
|
||||
|
||||
return nodesList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue