mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 03:25:49 +01:00
Bangle.js: change encoded char set to match Espruino's 8 bit fonts
This commit is contained in:
parent
1063b49519
commit
91a3a2f2c5
@ -103,7 +103,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
private void uartTx(TransactionBuilder builder, String str) {
|
private void uartTx(TransactionBuilder builder, String str) {
|
||||||
LOG.info("UART TX: " + str);
|
LOG.info("UART TX: " + str);
|
||||||
byte[] bytes;
|
byte[] bytes;
|
||||||
bytes = str.getBytes(StandardCharsets.UTF_8);
|
bytes = str.getBytes(StandardCharsets.ISO_8859_1);
|
||||||
for (int i=0;i<bytes.length;i+=20) {
|
for (int i=0;i<bytes.length;i+=20) {
|
||||||
int l = bytes.length-i;
|
int l = bytes.length-i;
|
||||||
if (l>20) l=20;
|
if (l>20) l=20;
|
||||||
|
Loading…
Reference in New Issue
Block a user