1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 11:35:48 +01:00

Merge branch 'hplus-unicode-only-first-bytes'

This commit is contained in:
João Paulo Barraca 2017-10-15 14:28:56 +01:00
commit 7947d94418

View File

@ -840,7 +840,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]);
}