Change QR-Code function label from "2D-Code" back to "QR-Code"

The function keeps reading all 2D-code types (QR-Code, MicroQRCode, RMQRCode,
DataMatrix, Aztec, PDF417) as requested. The label is now "QR-Code" per the
client's preference for their terminology. Added clarifying comments explaining
the intentional mismatch between the name and the supported formats, since the
hardware labels use DataMatrix (not QR). Updated README and test accordingly.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-29 14:50:24 +02:00
co-authored by Claude Opus 5
parent 2d7778cea8
commit 3907204209
3 changed files with 30 additions and 28 deletions
+4 -1
View File
@@ -38,8 +38,11 @@ export const SCAN_MODES = [
// Kennung bleibt aus historischen Gruenden `qrcode`, obwohl die Funktion
// inzwischen alle 2D-Codearten liest (nicht mehr nur QR) - Umbenennung
// nicht vorgenommen, da `qrcode` an mehreren Stellen durchgereicht wird.
// Label heisst auf Wunsch des Auftraggebers "QR-Code", obwohl die Funktion
// bewusst auch DataMatrix, Aztec und PDF417 liest - die RAM-Etiketten
// tragen DataMatrix, nicht QR.
id: 'qrcode',
label: '2D-Code',
label: 'QR-Code',
// QR-Varianten plus DataMatrix, Aztec, PDF417 - siehe Kommentar am Kopf.
barcodeFormats: ['QRCode', 'MicroQRCode', 'RMQRCode', 'DataMatrix', 'Aztec', 'PDF417'],
continuousSearch: true,