mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
waspos: fix setUpdateState
This commit is contained in:
committed by
José Rebelo
parent
280f4fc61d
commit
c700a4c71c
+2
-4
@@ -70,8 +70,7 @@ public class WaspOSDeviceSupport extends AbstractBTLESingleDeviceSupport {
|
||||
protected TransactionBuilder initializeDevice(TransactionBuilder builder) {
|
||||
LOG.info("Initializing");
|
||||
|
||||
gbDevice.setState(GBDevice.State.INITIALIZING);
|
||||
gbDevice.sendDeviceUpdateIntent(getContext(), GBDevice.DeviceUpdateSubject.DEVICE_STATE);
|
||||
builder.setUpdateState(gbDevice, GBDevice.State.INITIALIZING, getContext());
|
||||
|
||||
rxCharacteristic = getCharacteristic(WaspOSConstants.UUID_CHARACTERISTIC_NORDIC_UART_RX);
|
||||
txCharacteristic = getCharacteristic(WaspOSConstants.UUID_CHARACTERISTIC_NORDIC_UART_TX);
|
||||
@@ -87,8 +86,7 @@ public class WaspOSDeviceSupport extends AbstractBTLESingleDeviceSupport {
|
||||
|
||||
// get version
|
||||
|
||||
gbDevice.setState(GBDevice.State.INITIALIZED);
|
||||
gbDevice.sendDeviceUpdateIntent(getContext(), GBDevice.DeviceUpdateSubject.DEVICE_STATE);
|
||||
builder.setUpdateState(gbDevice, GBDevice.State.INITIALIZED, getContext());
|
||||
|
||||
LOG.info("Initialization Done");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user