fix: use the appropriate min when scaling the barometric pressure data (#1719)

This commit is contained in:
Robert-0410 2025-03-27 18:27:30 -07:00 committed by GitHub
parent a28dc377ae
commit 5379f9dede
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,7 +250,7 @@ private fun EnvironmentMetricsChart(
plotIAQ = true
}
val min = minValues.minOf { it }
var min = minValues.minOf { it }
val max = maxValues.maxOf { it }
var diff = max - min
@ -315,6 +315,7 @@ private fun EnvironmentMetricsChart(
}
if (metric == Environment.BAROMETRIC_PRESSURE) {
diff = pressureDiff
min = minPressure.environmentMetrics.barometricPressure
}
index = 0
while (index < telemetries.size) {