diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-30 23:39:40 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-30 23:39:40 -0800 |
commit | 753e2dd3271e30b92a86c4a580e87279b59d46f7 (patch) | |
tree | 6da969c0f0cef96588fd553f0138e649f359aa87 | |
parent | ef7f17ca1621bba82fbd95a0bd6d1c8da2bc82e9 (diff) | |
download | traccar-server-753e2dd3271e30b92a86c4a580e87279b59d46f7.tar.gz traccar-server-753e2dd3271e30b92a86c4a580e87279b59d46f7.tar.bz2 traccar-server-753e2dd3271e30b92a86c4a580e87279b59d46f7.zip |
Fix protocol response
-rw-r--r-- | src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java | 4 |
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)); } |