aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-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;
}