summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-23 11:16:40 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-23 11:16:40 +0100
commitcd76118fb6737eb241cab60207262617e12d237d (patch)
treead10a275c4428c071187861f460ceaa59b953888 /src/main/java/org/uic/barcode
parentadded fcb version 3 data type to the DOSIPAS encoding and decoding (diff)
downloadUIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.tar
UIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.tar.gz
UIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.tar.bz2
UIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.tar.lz
UIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.tar.xz
UIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.tar.zst
UIC-barcode-cd76118fb6737eb241cab60207262617e12d237d.zip
Diffstat (limited to 'src/main/java/org/uic/barcode')
-rw-r--r--src/main/java/org/uic/barcode/Encoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/uic/barcode/Encoder.java b/src/main/java/org/uic/barcode/Encoder.java
index 9463548..f0f8d14 100644
--- a/src/main/java/org/uic/barcode/Encoder.java
+++ b/src/main/java/org/uic/barcode/Encoder.java
@@ -100,7 +100,7 @@ public class Encoder {
DataType ticketData = new DataType();
UicRailTicketCoder uicTicketCoder = new UicRailTicketCoder();
- if (fcbVersion == 1) {
+ if (fcbVersion == 1 || fcbVersion == 13) {
ticketData.setFormat(Constants.DATA_TYPE_FCB_VERSION_1);
} else if (fcbVersion == 2) {
ticketData.setFormat(Constants.DATA_TYPE_FCB_VERSION_2);