Commit 2539e046 authored by Volker Krause's avatar Volker Krause
Browse files

Support VR ERA SSB ticket barcodes that wrongly claim to be version 2

parent 48fa50c1
......@@ -6,6 +6,10 @@
function parseSsbBarcode(ssb, node)
{
// vending machine bought and/or newer tickets claim version 2, but they aren't...
if (ssb.version == 2) {
ssb = Barcode.decodeEraSsbTicket(ssb.rawData, 1);
}
if (ssb.version != 1) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment