mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-04 13:04:08 +01:00
Workaround for crash (never return null heartrate for now)
This commit is contained in:
parent
85392e3ca6
commit
ecda0005d4
@ -69,7 +69,7 @@ public abstract class AbstractActivitySample implements ActivitySample {
|
||||
|
||||
@Override
|
||||
public Integer getHeartRate() {
|
||||
return null;
|
||||
return NOT_MEASURED;
|
||||
}
|
||||
|
||||
public abstract void setDeviceId(long deviceId);
|
||||
|
@ -77,7 +77,7 @@ public interface ActivitySample extends TimeStamped {
|
||||
* The value is returned in heart beats per minute, in the range from
|
||||
* 0-255, where 255 is an illegal value (e.g. due to a bad measurement)
|
||||
*
|
||||
* @return the heart rate value in beats per minute, or null if none
|
||||
* @return the heart rate value in beats per minute, or -1 if none
|
||||
*/
|
||||
Integer getHeartRate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user