mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +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.commandId = id;
|
||||
|
||||
this.tlv = new HuaweiTLV();
|
||||
|
||||
HuaweiTLV subTlv = new HuaweiTLV();
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user