mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 19:27:33 +01:00
Amazfit GTR2: probably finally fix firmware / watchface installaation
This commit is contained in:
parent
71cb53a440
commit
7698b84826
@ -24,6 +24,7 @@ import java.io.IOException;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiFWHelper;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr.AmazfitGTRFirmwareInfo;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr2.AmazfitGTR2FirmwareInfo;
|
||||
|
||||
public class AmazfitGTR2FWHelper extends HuamiFWHelper {
|
||||
|
||||
@ -33,7 +34,7 @@ public class AmazfitGTR2FWHelper extends HuamiFWHelper {
|
||||
|
||||
@Override
|
||||
protected void determineFirmwareInfo(byte[] wholeFirmwareBytes) {
|
||||
firmwareInfo = new AmazfitGTRFirmwareInfo(wholeFirmwareBytes);
|
||||
firmwareInfo = new AmazfitGTR2FirmwareInfo(wholeFirmwareBytes);
|
||||
if (!firmwareInfo.isHeaderValid()) {
|
||||
throw new IllegalArgumentException("Not an Amazfit GTR 2 firmware");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user