1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-13 11:17:33 +01:00

Add EAN & UPC codes to supported cards

This commit is contained in:
Eric de Boer 2024-06-20 15:30:19 +02:00 committed by José Rebelo
parent d1722dbf0d
commit 582c351142

View File

@ -1741,6 +1741,10 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
// we hardcode here what is supported
if (card.getBarcodeFormat() == BarcodeFormat.CODE_39 ||
card.getBarcodeFormat() == BarcodeFormat.CODABAR ||
card.getBarcodeFormat() == BarcodeFormat.EAN_8 ||
card.getBarcodeFormat() == BarcodeFormat.EAN_13 ||
card.getBarcodeFormat() == BarcodeFormat.UPC_A ||
card.getBarcodeFormat() == BarcodeFormat.UPC_E ||
card.getBarcodeFormat() == BarcodeFormat.QR_CODE) {
ret.add(card);
}