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

No one noticed, so it seems we can kill 2.x support soon :D
master
Andreas Shimokawa 2016-06-24 12:07:44 +02:00
parent b77f3ad3bf
commit 1de6ee019f
1 changed files with 2 additions and 1 deletions

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;