1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Pebble: try to improve PebbleKit compatibility

(Might help with glance #506)
This commit is contained in:
Andreas Shimokawa 2017-01-18 22:10:10 +01:00
parent ed020c2a97
commit 26a751977e

View File

@ -1910,8 +1910,8 @@ public class PebbleProtocol extends GBDeviceProtocol {
try {
JSONObject jsonObject = (JSONObject) jsonArray.get(i);
String type = (String) jsonObject.get("type");
int key = (int) jsonObject.get("key");
int length = (int) jsonObject.get("length");
int key = jsonObject.getInt("key");
int length = jsonObject.getInt("length");
switch (type) {
case "uint":
case "int":