mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
warning--
This commit is contained in:
parent
b8240d3d76
commit
e13b2cbd5e
@ -39,6 +39,7 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji)
|
||||
hint = QR_MODE_8;
|
||||
}
|
||||
|
||||
level = QR_ECLEVEL_L;
|
||||
if((security >= 1) && (security <= 4)) {
|
||||
switch (security) {
|
||||
case 1: level = QR_ECLEVEL_L; break;
|
||||
@ -46,8 +47,6 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji)
|
||||
case 3: level = QR_ECLEVEL_Q; break;
|
||||
case 4: level = QR_ECLEVEL_H; break;
|
||||
}
|
||||
} else {
|
||||
level = QR_ECLEVEL_L;
|
||||
}
|
||||
|
||||
if((size >= 1) && (size <= 40)) {
|
||||
|
Loading…
Reference in New Issue
Block a user