mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 19:36:50 +01:00
Merge branch 'master' into feature-weather
This commit is contained in:
commit
8e7dc18fa8
@ -679,12 +679,11 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
public byte[] encodeActivateHealth(boolean activate) {
|
public byte[] encodeActivateHealth(boolean activate) {
|
||||||
byte[] blob;
|
byte[] blob;
|
||||||
byte command;
|
byte command;
|
||||||
|
command = BLOBDB_INSERT;
|
||||||
if (activate) {
|
if (activate) {
|
||||||
command = BLOBDB_INSERT;
|
|
||||||
blob = new byte[]{0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02};
|
blob = new byte[]{0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02};
|
||||||
} else {
|
} else {
|
||||||
command = BLOBDB_DELETE;
|
blob = new byte[]{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||||
blob = null;
|
|
||||||
}
|
}
|
||||||
return encodeBlobdb("activityPreferences", command, BLOBDB_HEALTH, blob);
|
return encodeBlobdb("activityPreferences", command, BLOBDB_HEALTH, blob);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user