diff --git a/code93/encoder.go b/code93/encoder.go index 42a7c30..87c4395 100644 --- a/code93/encoder.go +++ b/code93/encoder.go @@ -88,7 +88,9 @@ func Encode(content string, includeChecksum bool, fullASCIIMode bool) (barcode.B } data := content + string(getChecksum(content, 20)) - data += string(getChecksum(data, 15)) + if includeChecksum { + data += string(getChecksum(data, 15)) + } data = "*" + data + "*" result := new(utils.BitList)