mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 05:24:13 -04:00
Add Reader Initialisation mode
This commit is contained in:
parent
1ac256c223
commit
e3e9c67f93
5 changed files with 50 additions and 7 deletions
|
@ -369,6 +369,17 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha
|
|||
if(debug) printf("FN1 ");
|
||||
} /* FNC1 */
|
||||
|
||||
if(symbol->output_options & READER_INIT) {
|
||||
if(gs1) {
|
||||
strcpy(symbol->errtxt, "Cannot encode in GS1 mode and Reader Initialisation at the same time");
|
||||
return ERROR_INVALID_OPTION;
|
||||
} else {
|
||||
target[tp] = 234; tp++; /* Reader Programming */
|
||||
concat(binary, " ");
|
||||
if(debug) printf("RP ");
|
||||
}
|
||||
}
|
||||
|
||||
while (sp < inputlen) {
|
||||
|
||||
current_mode = next_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue