Heart rate must be larger than zero to be shown while tracking.

This commit is contained in:
Dennis Guse
2019-10-26 14:35:03 +02:00
parent d8e526923d
commit 0cd9176703
2 changed files with 5 additions and 3 deletions
@@ -40,7 +40,7 @@ public final class SensorDataSet {
}
public boolean hasHeartRate() {
return !Float.isNaN(heartRate);
return !Float.isNaN(heartRate) && heartRate > 0;
}
public float getHeartRate() {