aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-08-29 20:37:47 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-08-29 20:37:47 +1200
commit561915e44fdf630ac10fdc8e4a207e384ea59d9a (patch)
tree4882c7abb5727d69832f5587dfbc136556663680 /src/org/traccar/protocol
parent2ff8f21543727590a0f66adc9fc72b0dd6b5e2c9 (diff)
downloadtrackermap-server-561915e44fdf630ac10fdc8e4a207e384ea59d9a.tar.gz
trackermap-server-561915e44fdf630ac10fdc8e4a207e384ea59d9a.tar.bz2
trackermap-server-561915e44fdf630ac10fdc8e4a207e384ea59d9a.zip
Minor GT06 decoder cleanup
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java9
1 files changed, 1 insertions, 8 deletions
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