mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 02:17:06 +00:00
Show correct ECC in function information
This commit is contained in:
@@ -1500,7 +1500,7 @@ int han_xin(struct zint_symbol *symbol, const unsigned char source[], size_t len
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
if (ecc_level & (0x02 >> i)) {
|
if ((ecc_level - 1) & (0x02 >> i)) {
|
||||||
function_information[i + 8] = '1';
|
function_information[i + 8] = '1';
|
||||||
} else {
|
} else {
|
||||||
function_information[i + 8] = '0';
|
function_information[i + 8] = '0';
|
||||||
|
|||||||
Reference in New Issue
Block a user