Skip to content

Commit

Permalink
Merge pull request codebutler#144 from phcoder/minn
Browse files Browse the repository at this point in the history
nextfare: Skip record of type 0x89
  • Loading branch information
micolous authored Aug 27, 2018
2 parents b39ae8d + 310535d commit 6e76e7d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ public static NextfareTransactionRecord recordFromBytes(byte[] input, TimeZone t
// LAX: input[0] == 0x41 for "Travel Pass" sale.
// LAX: input[0] == 0x71 for "Stored Value" sale -- effectively recorded twice
// SEQ, LAX: input[0] == 0x79 for "Stored Value" sale
// Minneapolis: input[0] == 0x89 unknown transaction type, no date, only a small number
// around 100

if (input[0] > 0x70) {
int transhead = (input[0] & 0xff);
if (transhead == 0x89 || transhead == 0x71 || transhead == 0x79) {
return null;
}

Expand Down

0 comments on commit 6e76e7d

Please sign in to comment.