mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
G1DeviceSupport: fix setUpdateState
This commit is contained in:
committed by
José Rebelo
parent
8bf39e62d5
commit
4c94bc5568
+2
-4
@@ -372,8 +372,7 @@ public class G1DeviceSupport extends AbstractBTLEMultiDeviceSupport {
|
||||
leftSide.send(leftCommandHandler);
|
||||
if (!leftCommandHandler.waitForResponsePayload()) {
|
||||
LOG.error("Set time on left lens timed out");
|
||||
getDevice().setState(GBDevice.State.WAITING_FOR_RECONNECT);
|
||||
getDevice().sendDeviceUpdateIntent(getContext());
|
||||
getDevice().setUpdateState(GBDevice.State.WAITING_FOR_RECONNECT, getContext());
|
||||
}
|
||||
|
||||
rightSide.send(new G1Communications.CommandSetTimeAndWeather(timeMilliseconds,
|
||||
@@ -416,8 +415,7 @@ public class G1DeviceSupport extends AbstractBTLEMultiDeviceSupport {
|
||||
leftSide.send(leftCommandHandler);
|
||||
if (!leftCommandHandler.waitForResponsePayload()) {
|
||||
LOG.error("Set dashboard on right lens timed out");
|
||||
getDevice().setState(GBDevice.State.WAITING_FOR_RECONNECT);
|
||||
getDevice().sendDeviceUpdateIntent(getContext());
|
||||
getDevice().setUpdateState(GBDevice.State.WAITING_FOR_RECONNECT, getContext());
|
||||
}
|
||||
|
||||
rightSide.send(new G1Communications.CommandSetDashboardModeSettings(
|
||||
|
||||
Reference in New Issue
Block a user