Skip to content

Commit

Permalink
fix wrong gender condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Danfro committed Nov 3, 2024
1 parent d68f367 commit 1dac831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/qml/pages/HeartratePage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ PagePL {
}
// max HR calculated with Wingate formula as the most recent evaluation with a large test group
// for details see https://en.wikipedia.org/wiki/Heart_rate#Maximum_heart_rate
if (gender = qsTr("Male")) {
if (gender = 1) { // 1=male
max_hr = 208.609-(0.716*age)
} else {
max_hr = 209.273-(0.804*age)
Expand Down

0 comments on commit 1dac831

Please sign in to comment.