This commit is contained in:
Sean Owen 2017-11-16 11:40:33 -06:00
parent ea3b04289d
commit 5409e6b6fd

View file

@ -66,7 +66,7 @@ final class EdifactEncoder implements Encoder {
context.updateSymbolInfo();
int available = context.getSymbolInfo().getDataCapacity() - context.getCodewordCount();
int remaining = context.getRemainingCharacters();
if (remaining == 0 && available <= 2) {
if (remaining <= available && available <= 2) {
return; //No unlatch
}
}