aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-30 23:39:40 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-30 23:39:40 -0800
commit753e2dd3271e30b92a86c4a580e87279b59d46f7 (patch)
tree6da969c0f0cef96588fd553f0138e649f359aa87 /src
parentef7f17ca1621bba82fbd95a0bd6d1c8da2bc82e9 (diff)
downloadtraccar-server-753e2dd3271e30b92a86c4a580e87279b59d46f7.tar.gz
traccar-server-753e2dd3271e30b92a86c4a580e87279b59d46f7.tar.bz2
traccar-server-753e2dd3271e30b92a86c4a580e87279b59d46f7.zip
Fix protocol response
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java
index 4df1f0bb6..edce2d52f 100644
--- a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java
@@ -63,9 +63,9 @@ public class MobilogixProtocolDecoder extends BaseProtocolDecoder {
String time = sentence.substring(1, 20);
String response;
if (type.equals("T1")) {
- response = String.format("[%s,S1,1]\r\n", time);
+ response = String.format("[%s,S1,1]", time);
} else {
- response = String.format("[%s,S%c]\r\n", time, type.charAt(1));
+ response = String.format("[%s,S%c]", time, type.charAt(1));
}
channel.writeAndFlush(new NetworkMessage(response, remoteAddress));
}