diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-24 23:41:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-24 23:41:30 +1300 |
commit | 96e15853b9c28bd31295ca2c014e226e4a50aaa1 (patch) | |
tree | ac7358a31d2f08c7e125eb2065795475114d4ea0 /src/org | |
parent | 496f6a612eb02396946db2715225f55cc7003a0d (diff) | |
download | trackermap-server-96e15853b9c28bd31295ca2c014e226e4a50aaa1.tar.gz trackermap-server-96e15853b9c28bd31295ca2c014e226e4a50aaa1.tar.bz2 trackermap-server-96e15853b9c28bd31295ca2c014e226e4a50aaa1.zip |
Improve TAIP validity handling
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/TaipProtocolDecoder.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TaipProtocolDecoder.java b/src/org/traccar/protocol/TaipProtocolDecoder.java index c6220ab1d..e7117a5c9 100644 --- a/src/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/org/traccar/protocol/TaipProtocolDecoder.java @@ -68,7 +68,6 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { .number("(x{8})") // odometer .number("[01]") // gps power .groupEnd("?") - .number("(d)") // fix mode .any() .compile(); @@ -162,7 +161,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_ODOMETER, parser.nextLong(16, 0)); } - position.setValid(parser.nextInt(0) != 0); + position.setValid(true); String[] attributes = null; beginIndex = sentence.indexOf(';'); |