1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 19:36:50 +01:00

Bangle.js: ensure char code 255 is translated properly into a String - this can then be sent to the App Loader. Fixes https://github.com/espruino/EspruinoAppLoaderCore/issues/55

This commit is contained in:
Gordon Williams 2023-09-14 11:07:05 +01:00
parent 2bd1cc332f
commit e18a991b13

View File

@ -1001,7 +1001,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
i--; // back up one (because we deleted it)
}
}
String packetStr = new String(chars);
String packetStr = new String(chars, StandardCharsets.ISO_8859_1);
LOG.debug("RX: " + packetStr);
// logging
addReceiveHistory(packetStr);