fix: restore standard HR zone defaults, relax zone-boundary validation instead of migration

This commit is contained in:
2026-07-17 19:06:01 +02:00
parent 57be9065cd
commit 9c42931c9e
3 changed files with 11 additions and 17 deletions

View File

@@ -19,12 +19,6 @@ func validateProfile(p store.Profile) error {
{p.HRZone4MinPct, p.HRZone4MaxPct},
{p.HRZone5MinPct, p.HRZone5MaxPct},
}
if zones[0][0] != 0 {
return errors.New("zone 1 must start at 0%")
}
if zones[len(zones)-1][1] != 100 {
return errors.New("zone 5 must end at 100%")
}
for i, z := range zones {
if z[0] >= z[1] {
return errors.New("each HR zone's min must be less than its max")