From d27db1f6e0c99d457f77cd29fe166d2acfccc40e Mon Sep 17 00:00:00 2001 From: Benjamin Kunz Date: Tue, 28 May 2013 16:23:53 +0200 Subject: [PATCH] unlatch before single ASCII character is required when leaving text encodation. fix for previous revision --- backend/dmatrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 backend/dmatrix.c diff --git a/backend/dmatrix.c b/backend/dmatrix.c old mode 100644 new mode 100755 index 80c79992..8ec6598f --- a/backend/dmatrix.c +++ b/backend/dmatrix.c @@ -687,7 +687,7 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha current_mode = DM_ASCII; } if(text_p == 1) { - // don't unlatch before sending a single remaining ASCII character. + target[tp] = 254; tp++; /* text encodation requires unlatch */ target[tp] = source[inputlen - 1] + 1; tp++; concat(binary, " "); if(debug) printf("ASC A%02X ", target[tp - 1] - 1);