mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Amazfit GTR/GTS: Fix connection for new firmware
This change does not do any harm on other Huami devices it seems
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ public class InitOperation extends AbstractBTLEOperation<HuamiSupport> {
|
||||
if (cryptFlags == 0x00) {
|
||||
return new byte[]{HuamiService.AUTH_REQUEST_RANDOM_AUTH_NUMBER, authFlags};
|
||||
} else {
|
||||
return new byte[]{(byte) (cryptFlags | HuamiService.AUTH_REQUEST_RANDOM_AUTH_NUMBER), authFlags, 0x02};
|
||||
return new byte[]{(byte) (cryptFlags | HuamiService.AUTH_REQUEST_RANDOM_AUTH_NUMBER), authFlags, 0x02, 0x01, 0x00};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user