mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-25 00:57:33 +01:00
Use Kilometers as distance unit
This commit is contained in:
parent
2f8207abf9
commit
10b5c571bb
@ -573,6 +573,7 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
|||||||
|
|
||||||
if (uri.equals(Uri.parse("fake://health"))) {
|
if (uri.equals(Uri.parse("fake://health"))) {
|
||||||
write(mPebbleProtocol.encodeActivateHealth(true));
|
write(mPebbleProtocol.encodeActivateHealth(true));
|
||||||
|
write(mPebbleProtocol.encodeSaneDistanceUnit());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -712,6 +712,14 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
return encodeBlobdb("activityPreferences", command, BLOBDB_HEALTH, blob);
|
return encodeBlobdb("activityPreferences", command, BLOBDB_HEALTH, blob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] encodeSaneDistanceUnit() {
|
||||||
|
byte[] blob;
|
||||||
|
byte command;
|
||||||
|
command = BLOBDB_INSERT;
|
||||||
|
blob = new byte[]{0x00};
|
||||||
|
return encodeBlobdb("unitsDistance", command, BLOBDB_HEALTH, blob);
|
||||||
|
}
|
||||||
|
|
||||||
public byte[] encodeReportDataLogSessions() {
|
public byte[] encodeReportDataLogSessions() {
|
||||||
return encodeSimpleMessage(ENDPOINT_DATALOG, DATALOG_REPORTSESSIONS);
|
return encodeSimpleMessage(ENDPOINT_DATALOG, DATALOG_REPORTSESSIONS);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user