Fix hr zones are not continous

This commit is contained in:
Tim Kluge 2024-12-08 12:45:21 +01:00
parent 629416d0a1
commit 254bbb3764

View File

@ -58,7 +58,7 @@ fun UserProfile.getUserPowerZone(power: Int): PowerZone? {
fun UserProfile.getUserHrZone(hr: Int): HrZone? {
heartRateZones.forEachIndexed { index, zone ->
if (hr in zone.min..<zone.max) {
if (hr in zone.min..zone.max) {
return HrZone.entries[index]
}
}