1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 13:26:50 +01:00

Merge branch 'master' into background-javascript

This commit is contained in:
Daniele Gobbetti 2017-01-01 19:45:27 +01:00
commit f175701825

View File

@ -1733,7 +1733,13 @@ public class PebbleProtocol extends GBDeviceProtocol {
switch (type) {
case TYPE_INT:
case TYPE_UINT:
if (length == 1) {
dict.add(new Pair<Integer, Object>(key, buf.get()));
} else if (length == 2) {
dict.add(new Pair<Integer, Object>(key, buf.getShort()));
} else {
dict.add(new Pair<Integer, Object>(key, buf.getInt()));
}
break;
case TYPE_CSTRING:
case TYPE_BYTEARRAY: