mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-06 02:07:05 +01:00
Mi Band 1S: fix regression with firmware 4.16.4.22 and whitelist 4.16.11.15
This commit is contained in:
parent
dc51714d01
commit
01a5d862a0
@ -62,6 +62,7 @@ public class MiBandFWHelper extends AbstractMiBandFWHelper {
|
||||
68094986, // 4.15.12.10 tested by developer
|
||||
68158215, // 4.16.3.7 tested by developer
|
||||
68158486, // 4.16.4.22 tested by developer and user
|
||||
68160271, // 4.16.11.15 tested by developer
|
||||
84870926, // 5.15.7.14 tested by developer
|
||||
};
|
||||
|
||||
|
@ -157,7 +157,7 @@ public class FetchActivityOperation extends AbstractMiBand1Operation {
|
||||
public FetchActivityOperation(MiBandSupport support) {
|
||||
super(support);
|
||||
hasExtendedActivityData = support.getDeviceInfo().supportsHeartrate();
|
||||
hasPacketCounter = support.getDeviceInfo().getProfileVersion() >= 0x02000000;
|
||||
hasPacketCounter = support.getDeviceInfo().getProfileVersion() >= 0x02000700;
|
||||
//temporary buffer, size is a multiple of 60 because we want to store complete minutes (1 minute = 3 or 4 bytes)
|
||||
int activityDataHolderSize = getBytesPerMinuteOfActivityData() * 60 * 4;
|
||||
int maxDataPacketLength = hasPacketCounter ? (hasExtendedActivityData ? 16 : 18) : 20;
|
||||
|
Loading…
Reference in New Issue
Block a user