1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Mi2: the only reason I can see for detecting MiBandSupport for Mi2

Fixes #529, hopefully
This commit is contained in:
cpfeiffer 2017-01-28 23:24:02 +01:00
parent ec6a8b6743
commit 2ae4497261

View File

@ -54,12 +54,12 @@ public class MiBand2Coordinator extends MiBandCoordinator {
// and a heuristic for now
try {
BluetoothDevice device = candidate.getDevice();
if (isHealthWearable(device)) {
// if (isHealthWearable(device)) {
String name = device.getName();
if (name != null && name.equalsIgnoreCase(MiBandConst.MI_BAND2_NAME)) {
return DeviceType.MIBAND2;
}
}
// }
} catch (Exception ex) {
LOG.error("unable to check device support", ex);
}