aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-24 11:16:42 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-24 11:16:42 +1200
commit38358bad4ea11a3fa6f581042fe5978f14f32d26 (patch)
treed8704572c31c86cee2d1a3e53ae527d3142ee35e /src
parent8f9ecb8683ea6f12308c302541afcd49a58c3dbc (diff)
downloadtrackermap-server-38358bad4ea11a3fa6f581042fe5978f14f32d26.tar.gz
trackermap-server-38358bad4ea11a3fa6f581042fe5978f14f32d26.tar.bz2
trackermap-server-38358bad4ea11a3fa6f581042fe5978f14f32d26.zip
Add new Tytan unit test cases
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/TytanProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TytanProtocolDecoder.java b/src/org/traccar/protocol/TytanProtocolDecoder.java
index bdfe19dfc..34b297a83 100644
--- a/src/org/traccar/protocol/TytanProtocolDecoder.java
+++ b/src/org/traccar/protocol/TytanProtocolDecoder.java
@@ -112,7 +112,7 @@ public class TytanProtocolDecoder extends BaseProtocolDecoder {
length += buf.readUnsignedByte();
}
- switch (buf.readUnsignedByte()) {
+ switch (type) {
case 2:
position.set(Event.KEY_ODOMETER, buf.readUnsignedMedium());
break;