Skip to content

Commit 0e43075

Browse files

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/State.mc

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ class State {
278278
// Workaround for Fenix5X - see #51
279279
maxHR = zones[zones.size() - 1];
280280
minHR = profile.restingHeartRate;
281-
if (minHR == 0) {
281+
if (minHR == null || minHR == 0) {
282282
minHR = 50;
283283
}
284284
}
@@ -456,4 +456,4 @@ class State {
456456
mUTCOffset = new Time.Duration(readInt("utcOffset", 0) * 60);
457457
mFlags = ALL;
458458
}
459-
}
459+
}

0 commit comments

Comments
 (0)