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

pull/1729/head
Robert-0410 2025-03-27 18:27:30 -07:00 zatwierdzone przez GitHub
rodzic a28dc377ae
commit 5379f9dede
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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) {