mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-30 14:02:56 +01:00
Mi Band 4: Fix RES and FW update
This commit is contained in:
parent
b6e78c1b9c
commit
31db568832
@ -96,10 +96,6 @@ public class UpdateFirmwareOperationNew extends UpdateFirmwareOperation {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected byte[] getFirmwareStartCommand() {
|
protected byte[] getFirmwareStartCommand() {
|
||||||
byte typeByte = 0; //TODO: what is this really?
|
return new byte[]{HuamiService.COMMAND_FIRMWARE_START_DATA, 1};
|
||||||
if (getFirmwareInfo().getFirmwareType() == HuamiFirmwareType.WATCHFACE) {
|
|
||||||
typeByte = 1;
|
|
||||||
}
|
|
||||||
return new byte[]{HuamiService.COMMAND_FIRMWARE_START_DATA, typeByte};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user