mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 18:45:49 +01:00
Amazfit GTR2e: fix creating from firmware info class
This commit is contained in:
parent
b945af1531
commit
6ca3424035
@ -23,7 +23,7 @@ import android.net.Uri;
|
||||
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.amazfitgtr2e.AmazfitGTR2eFirmwareInfo;
|
||||
|
||||
public class AmazfitGTR2eFWHelper extends HuamiFWHelper {
|
||||
|
||||
@ -33,7 +33,7 @@ public class AmazfitGTR2eFWHelper extends HuamiFWHelper {
|
||||
|
||||
@Override
|
||||
protected void determineFirmwareInfo(byte[] wholeFirmwareBytes) {
|
||||
firmwareInfo = new AmazfitGTRFirmwareInfo(wholeFirmwareBytes);
|
||||
firmwareInfo = new AmazfitGTR2eFirmwareInfo(wholeFirmwareBytes);
|
||||
if (!firmwareInfo.isHeaderValid()) {
|
||||
throw new IllegalArgumentException("Not an Amazfit GTR 2e firmware");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user