1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-17 04:40:36 +02:00

Bangle.js: change encoded char set to match Espruino's 8 bit fonts

This commit is contained in:
Gordon Williams 2020-04-07 09:41:24 +01:00
parent b290e035f1
commit 84536c99b7

View File

@ -98,7 +98,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
private void uartTx(TransactionBuilder builder, String str) {
LOG.info("UART TX: " + str);
byte[] bytes;
bytes = str.getBytes(StandardCharsets.UTF_8);
bytes = str.getBytes(StandardCharsets.ISO_8859_1);
for (int i=0;i<bytes.length;i+=20) {
int l = bytes.length-i;
if (l>20) l=20;