Skip to content

Commit b7d85fa

Browse files
authored
Merge pull request #63 from ph0b/patch-1
fix crash on fenix6pro
2 parents e40d02d + 0e43075 commit b7d85fa

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)