From 561915e44fdf630ac10fdc8e4a207e384ea59d9a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Aug 2017 20:37:47 +1200 Subject: Minor GT06 decoder cleanup --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 5c83f9348..ec3cec533 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -181,13 +181,6 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_IGNITION, BitUtil.check(flags, 15)); } - if (length > 0) { - if (length > 12) { - length = 12; - } - buf.skipBytes(length - 12); // skip reserved - } - return true; } @@ -578,7 +571,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } if (decodeLbs(position, buf, true)) { - buf.skipBytes(1); //Extended data + position.set(Position.KEY_RSSI, buf.readUnsignedByte()); } buf.skipBytes(buf.readUnsignedByte()); // additional cell towers -- cgit v1.2.3