diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-24 11:16:42 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-24 11:16:42 +1200 |
commit | 38358bad4ea11a3fa6f581042fe5978f14f32d26 (patch) | |
tree | d8704572c31c86cee2d1a3e53ae527d3142ee35e /src/org/traccar | |
parent | 8f9ecb8683ea6f12308c302541afcd49a58c3dbc (diff) | |
download | traccar-server-38358bad4ea11a3fa6f581042fe5978f14f32d26.tar.gz traccar-server-38358bad4ea11a3fa6f581042fe5978f14f32d26.tar.bz2 traccar-server-38358bad4ea11a3fa6f581042fe5978f14f32d26.zip |
Add new Tytan unit test cases
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/TytanProtocolDecoder.java | 2 |
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; |