From 86128a19c8005153a669668b3c821581182dce6d Mon Sep 17 00:00:00 2001 From: Ken Piper Date: Fri, 14 Feb 2025 01:40:33 -0600 Subject: [PATCH] Add missing units to node details info cards --- app/src/main/java/com/geeksville/mesh/ui/NodeDetail.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/NodeDetail.kt b/app/src/main/java/com/geeksville/mesh/ui/NodeDetail.kt index fc0fa23aa..e656e2adc 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/NodeDetail.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/NodeDetail.kt @@ -457,14 +457,14 @@ private fun EnvironmentMetrics( InfoCard( icon = Icons.Default.Speed, text = "Pressure", - value = "%.0f".format(barometricPressure) + value = "%.0f hPa".format(barometricPressure) ) } if (gasResistance != 0f) { InfoCard( icon = Icons.Default.BlurOn, text = "Gas Resistance", - value = "%.0f".format(gasResistance) + value = "%.0f MΩ".format(gasResistance) ) } if (voltage != 0f) { @@ -499,7 +499,7 @@ private fun EnvironmentMetrics( InfoCard( icon = Icons.Default.LightMode, text = "Lux", - value = "%.0f".format(lux) + value = "%.0f lx".format(lux) ) } if (hasWindSpeed()) { @@ -523,7 +523,7 @@ private fun EnvironmentMetrics( InfoCard( icon = ImageVector.vectorResource(R.drawable.ic_filled_radioactive_24), text = "Radiation", - value = "%.1f µR".format(radiation) + value = "%.1f µR/h".format(radiation) ) } }