mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 09:17:29 +01:00
Amazfit Cor: Fix flashing of new .res files
This commit is contained in:
parent
11d49f223b
commit
6b56e8e568
@ -20,6 +20,7 @@ public enum HuamiFirmwareType {
|
||||
FIRMWARE((byte) 0),
|
||||
FONT((byte) 1),
|
||||
RES((byte) 2),
|
||||
RES_NEW((byte)130),
|
||||
GPS((byte) 3),
|
||||
GPS_CEP((byte) 4),
|
||||
GPS_ALMANAC((byte)5),
|
||||
|
@ -60,7 +60,7 @@ public class AmazfitCorFirmwareInfo extends HuamiFirmwareInfo {
|
||||
}
|
||||
return HuamiFirmwareType.RES;
|
||||
} else if (ArrayUtils.equals(bytes, RES_HEADER, NEW_RES_HEADER_OFFSET)) {
|
||||
return HuamiFirmwareType.RES;
|
||||
return HuamiFirmwareType.RES_NEW;
|
||||
} else if (ArrayUtils.equals(bytes, FW_HEADER, FW_HEADER_OFFSET)) {
|
||||
// TODO: this is certainly not a correct validation, but it works for now
|
||||
return HuamiFirmwareType.FIRMWARE;
|
||||
|
Loading…
Reference in New Issue
Block a user