mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Modify the Paxcount display logic to show the string if either `ble` or `wifi` is not zero, rather than requiring both to be non-zero. Signed-off-by: James Rich <james.a.rich@gmail.com>
This commit is contained in:
parent
d78bea2365
commit
68cd540f9e
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ data class Node(
|
|||
}
|
||||
|
||||
private fun PaxcountProtos.Paxcount.getDisplayString() =
|
||||
"PAX: ${ble + wifi} (B:$ble/W:$wifi)".takeIf { ble != 0 && wifi != 0 }
|
||||
"PAX: ${ble + wifi} (B:$ble/W:$wifi)".takeIf { ble != 0 || wifi != 0 }
|
||||
|
||||
fun getTelemetryString(isFahrenheit: Boolean = false): String {
|
||||
return listOfNotNull(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue