1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 14:52:25 +02:00

Amazfit Bip: Remove RES file limit (for BipOS)

This commit is contained in:
Andreas Shimokawa 2020-01-08 22:44:21 +01:00
parent 4277a3e8d2
commit 7c15ddb471
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#### Version 0.41.0
* JYou Y5: Initial support
* Mi Band 2/Amazfit Bip: Redesign button actions for easy music control setup and support long presses on Bip
* Amazfit Bip: Increase RES file limit to 800000 bytes (BipOS)
* Amazfit Bip: Remove RES file limit (for BipOS)
* Huami: Automatically toggle alarm switch when toggling on the Band/Watch while in Alarm settings in Gadetbridge
* Recogize Pixart-Messenger as Chat App

View File

@ -173,7 +173,7 @@ public class AmazfitBipFirmwareInfo extends HuamiFirmwareInfo {
@Override
protected HuamiFirmwareType determineFirmwareType(byte[] bytes) {
if (ArrayUtils.startsWith(bytes, RES_HEADER) || ArrayUtils.startsWith(bytes, NEWRES_HEADER)) {
if ((bytes.length <= 100000) || (bytes.length > 800000)) { // dont know how to distinguish from Cor/Mi Band 3 .res
if (bytes.length <= 100000) { // dont know how to distinguish from Cor/Mi Band 3 .res
return HuamiFirmwareType.INVALID;
}
return HuamiFirmwareType.RES;