From aeec68aeef4d2097d761afc44168600077fedf4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Tue, 9 Jan 2024 17:43:43 +0000 Subject: [PATCH] Huami: Fetch SpO2 on devices that support it --- .../gadgetbridge/service/devices/huami/HuamiSupport.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java index 19beeb779..13821a731 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java @@ -1686,11 +1686,11 @@ public abstract class HuamiSupport extends AbstractBTLEDeviceSupport implements this.fetchOperationQueue.add(new FetchPaiOperation(this)); } - if (Huami2021Coordinator.experimentalFeatures(getDevice())) { - if ((dataTypes & RecordedDataTypes.TYPE_SPO2) != 0 && coordinator.supportsSpo2()) { - this.fetchOperationQueue.add(new FetchSpo2NormalOperation(this)); - } + if ((dataTypes & RecordedDataTypes.TYPE_SPO2) != 0 && coordinator.supportsSpo2()) { + this.fetchOperationQueue.add(new FetchSpo2NormalOperation(this)); + } + if (Huami2021Coordinator.experimentalFeatures(getDevice())) { if ((dataTypes & RecordedDataTypes.TYPE_HEART_RATE) != 0 && coordinator.supportsHeartRateStats()) { this.fetchOperationQueue.add(new FetchHeartRateManualOperation(this)); this.fetchOperationQueue.add(new FetchHeartRateMaxOperation(this));