From 45bb3c2dabed1cffa98855e9855b0f208f9dfdcc Mon Sep 17 00:00:00 2001 From: Peter Mbugua Date: Fri, 6 Dec 2024 22:03:18 +0300 Subject: [PATCH] fix barcode height command --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7997484..dba1890 100644 --- a/main.go +++ b/main.go @@ -252,7 +252,7 @@ func (e *Escpos) BarcodeWidth(p uint8) (int, error) { if p > 6 { p = 6 } - return e.WriteRaw([]byte{gs, 'h', p}) + return e.WriteRaw([]byte{gs, 'w', p}) } // Prints a UPCA Barcode. code can only be numerical characters and must have a length of 11 or 12