mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: PowerMetrics voltage to display 2 decimals
This commit is contained in:
parent
4e30172f3c
commit
3bfbe12fd9
1 changed files with 4 additions and 4 deletions
|
|
@ -368,7 +368,7 @@ private fun EnvironmentMetrics(
|
|||
InfoCard(
|
||||
icon = Icons.Default.Bolt,
|
||||
text = "Voltage",
|
||||
value = "%.1fV".format(voltage)
|
||||
value = "%.2fV".format(voltage)
|
||||
)
|
||||
}
|
||||
if (current != 0f) {
|
||||
|
|
@ -416,7 +416,7 @@ private fun PowerMetrics(node: NodeEntity) = with(node.powerMetrics) {
|
|||
InfoCard(
|
||||
icon = Icons.Default.Bolt,
|
||||
text = "Channel 1",
|
||||
value = "%.1fV".format(ch1Voltage)
|
||||
value = "%.2fV".format(ch1Voltage)
|
||||
)
|
||||
}
|
||||
if (ch1Current != 0f) {
|
||||
|
|
@ -430,7 +430,7 @@ private fun PowerMetrics(node: NodeEntity) = with(node.powerMetrics) {
|
|||
InfoCard(
|
||||
icon = Icons.Default.Bolt,
|
||||
text = "Channel 2",
|
||||
value = "%.1fV".format(ch2Voltage)
|
||||
value = "%.2fV".format(ch2Voltage)
|
||||
)
|
||||
}
|
||||
if (ch2Current != 0f) {
|
||||
|
|
@ -444,7 +444,7 @@ private fun PowerMetrics(node: NodeEntity) = with(node.powerMetrics) {
|
|||
InfoCard(
|
||||
icon = Icons.Default.Bolt,
|
||||
text = "Channel 3",
|
||||
value = "%.1fV".format(ch3Voltage)
|
||||
value = "%.2fV".format(ch3Voltage)
|
||||
)
|
||||
}
|
||||
if (ch3Current != 0f) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue