mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Huawei: fix Send thresholds packet
This commit is contained in:
parent
22eebf9592
commit
e124ac4974
@ -477,10 +477,12 @@ public class FitnessData {
|
|||||||
this.serviceId = FitnessData.id;
|
this.serviceId = FitnessData.id;
|
||||||
this.commandId = id;
|
this.commandId = id;
|
||||||
|
|
||||||
this.tlv = new HuaweiTLV();
|
|
||||||
|
HuaweiTLV subTlv = new HuaweiTLV();
|
||||||
for(HuaweiReportThreshold th: thresholds) {
|
for(HuaweiReportThreshold th: thresholds) {
|
||||||
this.tlv.put(0x02, th.getBytes());
|
subTlv.put(0x02, th.getBytes());
|
||||||
}
|
}
|
||||||
|
this.tlv = new HuaweiTLV().put(0x81, subTlv);
|
||||||
this.complete = true;
|
this.complete = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user