mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Checked against version 8.0 of GS1 standard
This commit is contained in:
parent
38b8de26e4
commit
3768b65d3e
@ -112,8 +112,8 @@ int gs1_verify(struct zint_symbol *symbol, unsigned char source[], char reduced[
|
|||||||
ai_string[2] = '\0';
|
ai_string[2] = '\0';
|
||||||
last_ai = atoi(ai_string);
|
last_ai = atoi(ai_string);
|
||||||
ai_latch = 0;
|
ai_latch = 0;
|
||||||
/* The following values from GS1 specification figure 5.3.8.2.1 - 1
|
/* The following values from "GS-1 General Specification version 8.0 issue 2, May 2008"
|
||||||
"Element Strings with Pre-Defined Length Using Application Identifiers" */
|
figure 5.4.8.2.1 - 1 "Element Strings with Pre-Defined Length Using Application Identifiers" */
|
||||||
if((last_ai >= 0) && (last_ai <= 4)) { ai_latch = 1; }
|
if((last_ai >= 0) && (last_ai <= 4)) { ai_latch = 1; }
|
||||||
if((last_ai >= 11) && (last_ai <= 20)) { ai_latch = 1; }
|
if((last_ai >= 11) && (last_ai <= 20)) { ai_latch = 1; }
|
||||||
if(last_ai == 23) { ai_latch = 1; } /* legacy support - see 5.3.8.2.2 */
|
if(last_ai == 23) { ai_latch = 1; } /* legacy support - see 5.3.8.2.2 */
|
||||||
|
Loading…
Reference in New Issue
Block a user