1
0
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:
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 @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};
} }
} }