Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down