aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gt06ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-11-22 22:32:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-11-22 22:32:27 +1300
commit1ae9629c521f517e97716fed654dddbde98e39e4 (patch)
tree8588302772036d9e07b9cc142088a563cbfdd927 /src/org/traccar/protocol/Gt06ProtocolDecoder.java
parent74f88cf2cc40680869233bcdb97cece139985f96 (diff)
downloadtrackermap-server-1ae9629c521f517e97716fed654dddbde98e39e4.tar.gz
trackermap-server-1ae9629c521f517e97716fed654dddbde98e39e4.tar.bz2
trackermap-server-1ae9629c521f517e97716fed654dddbde98e39e4.zip
Fix GT06 response issue
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index 0ef242b05..fae284e22 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -126,7 +126,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
try {
deviceId = getDataManager().getDeviceByImei(imei).getId();
- buf.skipBytes(dataLength - 8);
+ buf.skipBytes(buf.readableBytes() - 6);
sendResponse(channel, type, buf.readUnsignedShort());
} catch(Exception error) {
Log.warning("Unknown device - " + imei);