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:
parent
b77f3ad3bf
commit
1de6ee019f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue