1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-16 18:34:03 +02:00

For Mi Band 1A (fw 5.15.7.14) we get 0xa for auth success #180

This commit is contained in:
cpfeiffer 2016-03-07 21:43:45 +01:00
parent 50dd7f5eba
commit be012eca8d

View File

@ -778,6 +778,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
GB.toast(getContext(), "Band needs pairing", Toast.LENGTH_LONG, GB.ERROR);
break;
case MiBandService.NOTIFY_AUTHENTICATION_SUCCESS: // fall through -- not sure which one we get
case MiBandService.NOTIFY_RESET_AUTHENTICATION_SUCCESS: // for Mi 1A
case MiBandService.NOTIFY_STATUS_MOTOR_AUTH_SUCCESS:
LOG.info("Band successfully authenticated");
// maybe we can perform the rest of the initialization from here