parent
65580ac6e3
commit
d6f8bd41de
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue