From 753e2dd3271e30b92a86c4a580e87279b59d46f7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 30 Nov 2020 23:39:40 -0800 Subject: Fix protocol response --- src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org') 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)); } -- cgit v1.2.3