aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-06-09 23:11:21 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-06-09 23:11:21 -0700
commita796c0317dc8c0598adb757eb6a77358c90767c3 (patch)
tree5ec7dd93cc7ecca0ce591d5f791ea4dd3dde053a /src/main/java/org/traccar
parent7dc90b43ee9ca04d317e7d8f45beab915550adfb (diff)
downloadtraccar-server-a796c0317dc8c0598adb757eb6a77358c90767c3.tar.gz
traccar-server-a796c0317dc8c0598adb757eb6a77358c90767c3.tar.bz2
traccar-server-a796c0317dc8c0598adb757eb6a77358c90767c3.zip
Support JT600 protocol for JT701
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
index 1351706e2..da055dff3 100644
--- a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2012 - 2019 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -170,6 +170,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
if (protocolVersion == 0x17) {
buf.readUnsignedByte(); // geofence id
buf.skipBytes(3); // reserved
+ buf.skipBytes(buf.readableBytes() - 1);
}
} else if (version == 1) {