mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-12 01:51:58 +01:00
Merge branch 'master' into background-javascript
This commit is contained in:
commit
f175701825
@ -1733,7 +1733,13 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case TYPE_INT:
|
case TYPE_INT:
|
||||||
case TYPE_UINT:
|
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()));
|
dict.add(new Pair<Integer, Object>(key, buf.getInt()));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TYPE_CSTRING:
|
case TYPE_CSTRING:
|
||||||
case TYPE_BYTEARRAY:
|
case TYPE_BYTEARRAY:
|
||||||
|
Loading…
Reference in New Issue
Block a user