Huawei: fix Send thresholds packet

This commit is contained in:
Me7c7 2024-10-25 10:00:00 +03:00 committed by José Rebelo
parent 22eebf9592
commit e124ac4974

View File

@ -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;
}
}