mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-14 17:55:17 -04:00
fix: convert SNR values to Float for decimal precision
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user