From 38358bad4ea11a3fa6f581042fe5978f14f32d26 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 24 Sep 2015 11:16:42 +1200 Subject: Add new Tytan unit test cases --- src/org/traccar/protocol/TytanProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') 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; -- cgit v1.2.3