1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 01:09:47 +01:00

Mi Band 6: Fix watchface installation

This commit is contained in:
Andreas Shimokawa 2021-09-02 13:26:35 +02:00
parent a24900bbcf
commit eb8284f079
2 changed files with 2 additions and 2 deletions

View File

@ -2928,7 +2928,7 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
}
}
protected void writeToConfiguration(TransactionBuilder builder, byte[] data) {
public void writeToConfiguration(TransactionBuilder builder, byte[] data) {
if (force2021Protocol) {
data = ArrayUtils.insert(0, data, (byte) 1);
writeToChunked2021(builder, HuamiService.CHUNKED2021_ENDPOINT_COMPAT, getNextHandle(), data, true);

View File

@ -177,7 +177,7 @@ public class UpdateFirmwareOperation2020 extends UpdateFirmwareOperation {
if (getFirmwareInfo().getFirmwareType() == HuamiFirmwareType.WATCHFACE) {
byte[] fwBytes = firmwareInfo.getBytes();
if (ArrayUtils.startsWith(fwBytes, UIHH_HEADER)) {
builder.write(getCharacteristic(HuamiService.UUID_CHARACTERISTIC_3_CONFIGURATION),
getSupport().writeToConfiguration(builder,
new byte[]{0x39, 0x00,
sizeBytes[0],
sizeBytes[1],