aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-14 17:14:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-14 17:14:46 +1300
commit735e087d084afd443fe7941364201964722e44db (patch)
treed03fddc3d549502145cc23f057490e4e3746bc9d /src/org
parentff6011468a3d2b24eb4e67412e777fdf262a6824 (diff)
downloadtrackermap-server-735e087d084afd443fe7941364201964722e44db.tar.gz
trackermap-server-735e087d084afd443fe7941364201964722e44db.tar.bz2
trackermap-server-735e087d084afd443fe7941364201964722e44db.zip
Fix XRB 28 issues
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Xrb28Protocol.java2
-rw-r--r--src/org/traccar/protocol/Xrb28ProtocolDecoder.java2
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;
}