From c1b6f5f4f58973807569a03dcdadfc08168c7f61 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 29 Jun 2020 00:17:23 +0200 Subject: [PATCH] Amazfit Bip S: fix installation of latest res (96) --- .../devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java index 7bbd4e44a..ecc9fb89a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java @@ -76,7 +76,8 @@ public class AmazfitBipSFirmwareInfo extends HuamiFirmwareInfo { } } - if (ArrayUtils.equals(bytes, NEWRES_HEADER, COMPRESSED_RES_HEADER_OFFSET)) { + if (ArrayUtils.equals(bytes, NEWRES_HEADER, COMPRESSED_RES_HEADER_OFFSET) || + ArrayUtils.equals(bytes, NEWRES_HEADER, COMPRESSED_RES_HEADER_OFFSET_NEW)) { return HuamiFirmwareType.RES_COMPRESSED; }