From c635c9c510394e95c2d7dd30e178a8483818c486 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 14 Aug 2015 15:02:36 +1200 Subject: Fix Suntech commands delimiter --- src/org/traccar/protocol/SuntechProtocolEncoder.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/SuntechProtocolEncoder.java b/src/org/traccar/protocol/SuntechProtocolEncoder.java index 7bcb02088..6d1306645 100644 --- a/src/org/traccar/protocol/SuntechProtocolEncoder.java +++ b/src/org/traccar/protocol/SuntechProtocolEncoder.java @@ -15,12 +15,9 @@ */ package org.traccar.protocol; -import org.traccar.BaseProtocolEncoder; import org.traccar.StringProtocolEncoder; import org.traccar.model.Command; -import java.util.Map; - public class SuntechProtocolEncoder extends StringProtocolEncoder { @Override @@ -30,7 +27,7 @@ public class SuntechProtocolEncoder extends StringProtocolEncoder { case Command.TYPE_ENGINE_STOP: return formatCommand(command, "CMD;{%s};02;Enable1\r", Command.KEY_UNIQUE_ID); case Command.TYPE_ENGINE_RESUME: - return formatCommand(command, "CMD;{%s};02;Disable1\n", Command.KEY_UNIQUE_ID); + return formatCommand(command, "CMD;{%s};02;Disable1\r", Command.KEY_UNIQUE_ID); } return null; -- cgit v1.2.3