lsongdev / node-escpos

🖨️ ESC/POS Printer driver for Node.js
https://npmjs.org/escpos
Other
1.38k stars 423 forks source link

Fix code128 barcode string length calculation #411

Closed jimmy5312 closed 2 years ago

jimmy5312 commented 2 years ago

When attempt to print Code128 barcode, where barcode content is less than 16 character, invalid single char hex character is returned and failed to be converted to buffer causing barcode failed to print,

dohooo commented 2 years ago

412