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

Implement proper HPlus Unicode encoding support and Fixes #781

This commit is contained in:
João Paulo Barraca 2017-10-15 14:23:21 +01:00
parent 6ec1555178
commit 9b6cfd686a

View File

@ -829,7 +829,9 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
LOG.error("Could not convert String to Bytes: " + e.getMessage());
}
}
for (int j = 0; j < cs.length; j++)
final int j0 = (unicode && i != 0) ? 2 : 0;
for (int j = j0; j < cs.length; j++)
outBytes.add(cs[j]);
}