diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-14 17:14:46 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-14 17:14:46 +1300 |
commit | 735e087d084afd443fe7941364201964722e44db (patch) | |
tree | d03fddc3d549502145cc23f057490e4e3746bc9d | |
parent | ff6011468a3d2b24eb4e67412e777fdf262a6824 (diff) | |
download | traccar-server-735e087d084afd443fe7941364201964722e44db.tar.gz traccar-server-735e087d084afd443fe7941364201964722e44db.tar.bz2 traccar-server-735e087d084afd443fe7941364201964722e44db.zip |
Fix XRB 28 issues
-rw-r--r-- | src/org/traccar/protocol/Xrb28Protocol.java | 2 | ||||
-rw-r--r-- | src/org/traccar/protocol/Xrb28ProtocolDecoder.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Xrb28Protocol.java b/src/org/traccar/protocol/Xrb28Protocol.java index bb8c4fa39..e9b75dd1e 100644 --- a/src/org/traccar/protocol/Xrb28Protocol.java +++ b/src/org/traccar/protocol/Xrb28Protocol.java @@ -38,7 +38,7 @@ public class Xrb28Protocol extends BaseProtocol { pipeline.addLast(new LineBasedFrameDecoder(1024)); pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); - pipeline.addLast(new Ardi01ProtocolDecoder(Xrb28Protocol.this)); + pipeline.addLast(new Xrb28ProtocolDecoder(Xrb28Protocol.this)); } }); } diff --git a/src/org/traccar/protocol/Xrb28ProtocolDecoder.java b/src/org/traccar/protocol/Xrb28ProtocolDecoder.java index 7c382900a..c1854e4b0 100644 --- a/src/org/traccar/protocol/Xrb28ProtocolDecoder.java +++ b/src/org/traccar/protocol/Xrb28ProtocolDecoder.java @@ -68,7 +68,7 @@ public class Xrb28ProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; - DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, sentence.substring(8, 24)); + DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, sentence.substring(9, 24)); if (deviceSession == null) { return null; } |