1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 12:26:48 +01:00

Mi Band 4: Fix RES and FW update

This commit is contained in:
Andreas Shimokawa 2019-07-25 22:18:48 +02:00
parent b6e78c1b9c
commit 31db568832

View File

@ -96,10 +96,6 @@ public class UpdateFirmwareOperationNew extends UpdateFirmwareOperation {
@Override
protected byte[] getFirmwareStartCommand() {
byte typeByte = 0; //TODO: what is this really?
if (getFirmwareInfo().getFirmwareType() == HuamiFirmwareType.WATCHFACE) {
typeByte = 1;
}
return new byte[]{HuamiService.COMMAND_FIRMWARE_START_DATA, typeByte};
return new byte[]{HuamiService.COMMAND_FIRMWARE_START_DATA, 1};
}
}