mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
Amazfit Bip: Remove RES file limit (for BipOS)
This commit is contained in:
parent
4277a3e8d2
commit
7c15ddb471
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user