fix #1634 #1552: Update Paxcount display condition (#1635)

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:
James Rich
2025-03-05 07:59:28 -06:00
committed by GitHub
parent d78bea2365
commit 68cd540f9e

View File

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