mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 17:41:57 +01:00
Bangle.js: change encoded char set to match Espruino's 8 bit fonts
This commit is contained in:
parent
b290e035f1
commit
84536c99b7
@ -98,7 +98,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