For a start, we can reuse the alert notification from Mi 1 #323
So vibration works :-)
This commit is contained in:
parent
ccdb843b6e
commit
1bd919ccaa
|
@ -291,16 +291,7 @@ public class MiBand2Support extends AbstractBTLEDeviceSupport {
|
|||
}
|
||||
|
||||
private NotificationStrategy getNotificationStrategy() {
|
||||
if (mDeviceInfo == null) {
|
||||
// not initialized yet?
|
||||
return new NoNotificationStrategy();
|
||||
}
|
||||
if (mDeviceInfo.getFirmwareVersion() < MiBandFWHelper.FW_16779790) {
|
||||
return new V1NotificationStrategy(this);
|
||||
} else {
|
||||
//use the new alert characteristic
|
||||
return new V2NotificationStrategy(this);
|
||||
}
|
||||
return new V2NotificationStrategy(this);
|
||||
}
|
||||
|
||||
static final byte[] reboot = new byte[]{MiBandService.COMMAND_REBOOT};
|
||||
|
|
Loading…
Reference in New Issue