mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +01:00
Mi2: the only reason I can see for detecting MiBandSupport for Mi2
Fixes #529, hopefully
This commit is contained in:
parent
ec6a8b6743
commit
2ae4497261
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user