1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 06:41:06 +02:00

Pebble: fix regression. FW 2.x was completely broken

No one noticed, so it seems we can kill 2.x support soon :D
This commit is contained in:
Andreas Shimokawa 2016-06-24 12:07:44 +02:00
parent b77f3ad3bf
commit 1de6ee019f

View File

@ -2100,7 +2100,8 @@ public class PebbleProtocol extends GBDeviceProtocol {
versionCmd.fwVersion = new String(tmp).trim();
mFwMajor = versionCmd.fwVersion.charAt(1);
mFwMajor = versionCmd.fwVersion.charAt(1) - 48;
LOG.info("Pebble firmware major detected as " + mFwMajor);
buf.get(tmp, 0, 9);
int hwRev = buf.get() + 8;