From fe667ffdd8e1648aa1bfbdd274406e62227d0ce1 Mon Sep 17 00:00:00 2001 From: Cre3per Date: Thu, 3 Oct 2019 12:19:12 +0200 Subject: [PATCH] added makibes hr3 todo and heart rate constants --- .../gadgetbridge/devices/makibeshr3/MakibesHR3Constants.java | 5 +++++ .../service/devices/makibeshr3/MakibesHR3DeviceSupport.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/makibeshr3/MakibesHR3Constants.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/makibeshr3/MakibesHR3Constants.java index d3e925515..8bf50f86f 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/makibeshr3/MakibesHR3Constants.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/makibeshr3/MakibesHR3Constants.java @@ -86,6 +86,11 @@ public final class MakibesHR3Constants { public static final byte RPRT_REVERSE_FIND_DEVICE = (byte) 0x7d; + // The proximity sensor sees air.. + public static final byte ARG_HEARTRATE_NO_TARGET = (byte) 0xff; + // The hr sensor didn't find the heart rate yet. + public static final byte ARG_HEARTRATE_NO_READING = (byte) 0x00; + // heart rate public static final byte RPRT_HEARTRATE = (byte) 0x84; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/makibeshr3/MakibesHR3DeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/makibeshr3/MakibesHR3DeviceSupport.java index fcd8c0bd7..0cccbfab0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/makibeshr3/MakibesHR3DeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/makibeshr3/MakibesHR3DeviceSupport.java @@ -2,6 +2,8 @@ // TODO: Battery level +// TODO: Step target + // TODO: It'd be cool if we could change the language. There's no official way to do so, but the // TODO: watch is sold as chinese/english.