mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: convert SNR values to Float for decimal precision
This commit is contained in:
parent
1ae65ef267
commit
1d992d5caf
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ private fun formatTraceroutePath(nodesList: List<String>, snrList: List<Int>): S
|
|||
// use unknown SNR for entire route if snrList has invalid size
|
||||
List(nodesList.size - 1) { -128 }
|
||||
}.map { snr ->
|
||||
val str = if (snr == -128) "?" else "${snr / 4}"
|
||||
val str = if (snr == -128) "?" else "${snr / 4f}"
|
||||
"⇊ $str dB"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue