mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-24 02:46:50 +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
|
#### Version 0.41.0
|
||||||
* JYou Y5: Initial support
|
* JYou Y5: Initial support
|
||||||
* Mi Band 2/Amazfit Bip: Redesign button actions for easy music control setup and support long presses on Bip
|
* 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
|
* Huami: Automatically toggle alarm switch when toggling on the Band/Watch while in Alarm settings in Gadetbridge
|
||||||
* Recogize Pixart-Messenger as Chat App
|
* Recogize Pixart-Messenger as Chat App
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ public class AmazfitBipFirmwareInfo extends HuamiFirmwareInfo {
|
|||||||
@Override
|
@Override
|
||||||
protected HuamiFirmwareType determineFirmwareType(byte[] bytes) {
|
protected HuamiFirmwareType determineFirmwareType(byte[] bytes) {
|
||||||
if (ArrayUtils.startsWith(bytes, RES_HEADER) || ArrayUtils.startsWith(bytes, NEWRES_HEADER)) {
|
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.INVALID;
|
||||||
}
|
}
|
||||||
return HuamiFirmwareType.RES;
|
return HuamiFirmwareType.RES;
|
||||||
|
Loading…
Reference in New Issue
Block a user