1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01: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 committed by Gitea
parent 1063b49519
commit 91a3a2f2c5

View File

@ -103,7 +103,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;