1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Mi Band 3: Raise limit of RES files to 150000 bytes

Fixes #1223
This commit is contained in:
Andreas Shimokawa 2018-08-18 23:02:36 +02:00
parent 66796d23fb
commit c81965b88d

View File

@ -69,7 +69,7 @@ public class MiBand3FirmwareInfo extends HuamiFirmwareInfo {
return HuamiFirmwareType.INVALID;
}
if (ArrayUtils.startsWith(bytes, RES_HEADER)) {
if (bytes.length > 100000) { // don't know how to distinguish from Bip/Cor .res
if (bytes.length > 150000) { // don't know how to distinguish from Bip/Cor .res
return HuamiFirmwareType.INVALID;
}
return HuamiFirmwareType.RES;