1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-12 18:57:36 +01:00

Huami: Fix heart rate measurement interval on connection

This commit is contained in:
José Rebelo 2022-06-06 22:27:04 +01:00 committed by Gitea
parent 5e33e8e58f
commit d6658b41b5

View File

@ -270,7 +270,7 @@ public abstract class HuamiCoordinator extends AbstractDeviceCoordinator {
public static int getHeartRateMeasurementInterval(String deviceAddress) { public static int getHeartRateMeasurementInterval(String deviceAddress) {
Prefs prefs = new Prefs(GBApplication.getDeviceSpecificSharedPrefs(deviceAddress)); Prefs prefs = new Prefs(GBApplication.getDeviceSpecificSharedPrefs(deviceAddress));
return GBApplication.getPrefs().getInt(DeviceSettingsPreferenceConst.PREF_HEARTRATE_MEASUREMENT_INTERVAL, 0) / 60; return prefs.getInt(DeviceSettingsPreferenceConst.PREF_HEARTRATE_MEASUREMENT_INTERVAL, 0) / 60;
} }
public static boolean getHeartrateActivityMonitoring(String deviceAddress) throws IllegalArgumentException { public static boolean getHeartrateActivityMonitoring(String deviceAddress) throws IllegalArgumentException {