From 794ae6d8003ebc051d59aad15926a440317d043e Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Wed, 9 Dec 2015 17:54:54 +0100 Subject: [PATCH] Well, we better return something usefull instead of just false :-] Please try again #178 --- .../gadgetbridge/service/devices/miband/DeviceInfo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/DeviceInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/DeviceInfo.java index 276bffe5..18ffe2f9 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/DeviceInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/DeviceInfo.java @@ -73,6 +73,8 @@ public class DeviceInfo extends AbstractInfo { ", profileVersion=" + profileVersion + ", fwVersion=" + fwVersion + ", hwVersion=" + hwVersion + + ", feature=" + feature + + ", appearance=" + appearance + '}'; } @@ -85,7 +87,8 @@ public class DeviceInfo extends AbstractInfo { } public boolean isMilli1S() { - return false; // FIXME: what to do here? + // TODO: this is probably not quite correct, but hopefully sufficient for early 1S support + return feature == 4 && appearance == 0 || feature == 4 && hwVersion == 4; } public String getHwVersion() {