aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Xrb28ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Xrb28ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Xrb28ProtocolDecoder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Xrb28ProtocolDecoder.java b/src/org/traccar/protocol/Xrb28ProtocolDecoder.java
index c1854e4b0..a50716abb 100644
--- a/src/org/traccar/protocol/Xrb28ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xrb28ProtocolDecoder.java
@@ -77,11 +77,13 @@ public class Xrb28ProtocolDecoder extends BaseProtocolDecoder {
if (channel != null) {
if (type.matches("L0|L1|W0|E1")) {
channel.write(new NetworkMessage(
- sentence.substring(0, 27) + "#\n", remoteAddress));
+ sentence.substring(0, 27).replace("SCOR", "SCOS") + "#\n",
+ remoteAddress));
} else if (type.equals("R0") && pendingCommand != null) {
String command = pendingCommand.equals(Command.TYPE_ALARM_ARM) ? "L1," : "L0,";
channel.write(new NetworkMessage(
- sentence.substring(0, 25) + command + sentence.substring(30) + "\n", remoteAddress));
+ sentence.substring(0, 25).replace("SCOR", "SCOS") + command + sentence.substring(30) + "\n",
+ remoteAddress));
pendingCommand = null;
}
}