From 0d0b3a87e174b362b46eee59f474fd5c99f9c207 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 17 Aug 2015 12:43:38 +0200 Subject: [PATCH] Pebble: on FW 3.x always assume success for installation and do no wait for 2.x packets --- .../gadgetbridge/service/devices/pebble/PebbleIoThread.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java index d513c5de..1d229fa0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java @@ -178,6 +178,8 @@ public class PebbleIoThread extends GBDeviceIoThread { if (mPBWReader.isFirmware()) { writeInstallApp(mPebbleProtocol.encodeInstallFirmwareComplete()); finishInstall(false); + } else if (mPebbleProtocol.isFw3x) { + finishInstall(false); // FIXME: dont know yet how to detect success } else { writeInstallApp(mPebbleProtocol.encodeAppRefresh(mInstallSlot)); }