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:
parent
a24900bbcf
commit
eb8284f079
@ -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);
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user