fix: restore standard HR zone defaults, relax zone-boundary validation instead of migration
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user