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

Bangle.js: Put JSON keys in quotes

this allows the watch to work with gadgetbridge while 'programmable' is set to off
This commit is contained in:
Simon Sievert 2023-07-29 14:33:16 +02:00
parent e3bc3742a8
commit 0ae14fb80a
No known key found for this signature in database
GPG Key ID: 2A42AC2045E073E1

View File

@ -435,7 +435,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
} catch (JSONException e) {
LOG.warn("jsonToString object error: " + e.getLocalizedMessage());
}
json += key+":"+jsonToStringInternal(o);
json += "\""+key+"\":"+jsonToStringInternal(o);
if (iter.hasNext()) json+=",";
}
return json+"}";