Skip to content

Commit

Permalink
Added fnc1 codeword
Browse files Browse the repository at this point in the history
  • Loading branch information
PisinO authored Oct 18, 2023
1 parent 510db5f commit 0e44924
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ZXingObjC/datamatrix/encoder/ZXDataMatrixHighLevelEncoder.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ + (unichar)latchToBase256 {
return 231;
}

+ (unichar)fnc1 {
return 232;
}

+ (unichar)upperShift {
return 235;
}
Expand Down Expand Up @@ -148,6 +152,8 @@ + (NSString *)encodeHighLevel:(NSString *)msg shape:(ZXDataMatrixSymbolShapeHint
context.symbolShape = shape;
[context setSizeConstraints:minSize maxSize:maxSize];

[context writeCodeword: [self fnc1]];

if ([msg hasPrefix:MACRO_05_HEADER] && [msg hasSuffix:MACRO_TRAILER]) {
[context writeCodeword:[self macro05]];
[context setSkipAtEnd:2];
Expand Down

0 comments on commit 0e44924

Please sign in to comment.