1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Zepp OS: Map barcode types for ITF, PDF_417 and DATA_MATRIX

This commit is contained in:
José Rebelo 2023-08-14 14:12:46 +01:00
parent 19e7003c95
commit d6567e553f

View File

@ -236,7 +236,10 @@ public class ZeppOsLoyaltyCardService extends AbstractZeppOsService {
private static final Map<BarcodeFormat, Byte> BARCODE_FORMAT_CODES = new HashMap<BarcodeFormat, Byte>() {{ private static final Map<BarcodeFormat, Byte> BARCODE_FORMAT_CODES = new HashMap<BarcodeFormat, Byte>() {{
put(BarcodeFormat.CODE_128, (byte) 0x00); put(BarcodeFormat.CODE_128, (byte) 0x00);
put(BarcodeFormat.CODE_39, (byte) 0x01); put(BarcodeFormat.CODE_39, (byte) 0x01);
put(BarcodeFormat.ITF, (byte) 0x02);
put(BarcodeFormat.QR_CODE, (byte) 0x03); put(BarcodeFormat.QR_CODE, (byte) 0x03);
put(BarcodeFormat.PDF_417, (byte) 0x04);
put(BarcodeFormat.DATA_MATRIX, (byte) 0x05);
put(BarcodeFormat.UPC_A, (byte) 0x06); put(BarcodeFormat.UPC_A, (byte) 0x06);
put(BarcodeFormat.EAN_13, (byte) 0x07); put(BarcodeFormat.EAN_13, (byte) 0x07);
put(BarcodeFormat.EAN_8, (byte) 0x08); put(BarcodeFormat.EAN_8, (byte) 0x08);