Skip to content

Update Aztec barcode ZPL generation#22

Merged
u8array merged 2 commits into
mainfrom
fix/aztec-eclevel
May 7, 2026
Merged

Update Aztec barcode ZPL generation#22
u8array merged 2 commits into
mainfrom
fix/aztec-eclevel

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 7, 2026

Modify the toZPL function for Aztec barcodes to correctly include the error correction level (ecLevel) in the ZPL command. Previously, a fixed N was used for this parameter, which is incorrect.

This change also updates the corresponding test fixtures to reflect the correct ZPL generation.

Modify the `toZPL` function for Aztec barcodes to correctly include the
error correction level (`ecLevel`) in the ZPL command. Previously, a
fixed `N` was used for this parameter, which is incorrect.

This change also updates the corresponding test fixtures to reflect the
correct ZPL generation.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Aztec barcode ZPL generation in src/registry/aztec.tsx to utilize the ecLevel property for the errorControl parameter, replacing previously hardcoded values. Test fixtures in fixtures.json and testCases.ts were updated to align with this change. Feedback suggests enhancing the documentation within the code to detail the valid ranges for the errorControl parameter according to the ZPL II specification.

Comment thread src/registry/aztec.tsx
@u8array u8array merged commit 77b4ae1 into main May 7, 2026
1 check passed
@u8array u8array deleted the fix/aztec-eclevel branch May 7, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant