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

Fixes #529, hopefully
here
cpfeiffer 2017-01-28 23:24:02 +01:00
parent ec6a8b6743
commit 2ae4497261
1 changed files with 2 additions and 2 deletions

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);
}