mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-12 10:01:54 +01:00
tweaked init process
This commit is contained in:
parent
ef692498af
commit
886113dad8
@ -213,9 +213,19 @@ public class QHybridSupport extends QHybridBaseSupport {
|
|||||||
for (int i = 2; i <= 7; i++)
|
for (int i = 2; i <= 7; i++)
|
||||||
builder.notify(getCharacteristic(UUID.fromString("3dda000" + i + "-957f-7d4a-34a6-74696673696d")), true);
|
builder.notify(getCharacteristic(UUID.fromString("3dda000" + i + "-957f-7d4a-34a6-74696673696d")), true);
|
||||||
|
|
||||||
|
|
||||||
|
requestQueue.add(new GetStepGoalRequest());
|
||||||
|
requestQueue.add(new GetCurrentStepCountRequest());
|
||||||
|
requestQueue.add(new GetVibrationStrengthRequest());
|
||||||
|
requestQueue.add(new ActivityPointGetRequest());
|
||||||
|
requestQueue.add(new AnimationRequest());
|
||||||
|
|
||||||
|
Request initialRequest = new BatteryLevelRequest();
|
||||||
|
|
||||||
builder.read(getCharacteristic(UUID.fromString("00002a00-0000-1000-8000-00805f9b34fb")))
|
builder.read(getCharacteristic(UUID.fromString("00002a00-0000-1000-8000-00805f9b34fb")))
|
||||||
.read(getCharacteristic(UUID.fromString("00002a24-0000-1000-8000-00805f9b34fb")))
|
.read(getCharacteristic(UUID.fromString("00002a24-0000-1000-8000-00805f9b34fb")))
|
||||||
.read(getCharacteristic(UUID.fromString("00002a26-0000-1000-8000-00805f9b34fb")));
|
.read(getCharacteristic(UUID.fromString("00002a26-0000-1000-8000-00805f9b34fb")))
|
||||||
|
.write(getCharacteristic(initialRequest.getRequestUUID()), initialRequest.getRequestData());
|
||||||
|
|
||||||
helper = new PackageConfigHelper(getContext());
|
helper = new PackageConfigHelper(getContext());
|
||||||
|
|
||||||
@ -391,14 +401,6 @@ public class QHybridSupport extends QHybridBaseSupport {
|
|||||||
case "00002a26-0000-1000-8000-00805f9b34fb": {
|
case "00002a26-0000-1000-8000-00805f9b34fb": {
|
||||||
String firmwareVersion = characteristic.getStringValue(0);
|
String firmwareVersion = characteristic.getStringValue(0);
|
||||||
gbDevice.setFirmwareVersion(firmwareVersion);
|
gbDevice.setFirmwareVersion(firmwareVersion);
|
||||||
|
|
||||||
requestQueue.add(new GetStepGoalRequest());
|
|
||||||
requestQueue.add(new GetCurrentStepCountRequest());
|
|
||||||
requestQueue.add(new GetVibrationStrengthRequest());
|
|
||||||
requestQueue.add(new ActivityPointGetRequest());
|
|
||||||
requestQueue.add(new AnimationRequest());
|
|
||||||
queueWrite(new BatteryLevelRequest());
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user