1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01: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:
Andreas Shimokawa 2020-07-04 23:39:33 +02:00
parent 87c7658d3d
commit c437347236

View File

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