diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-14 15:02:36 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-14 15:02:36 +1200 |
commit | c635c9c510394e95c2d7dd30e178a8483818c486 (patch) | |
tree | 94756d4d5ca9e77ed025fb4a41e06fe73e2500ca /src | |
parent | d248d2470434b9b6921fb3cc8afebf40123f8dd4 (diff) | |
download | trackermap-server-c635c9c510394e95c2d7dd30e178a8483818c486.tar.gz trackermap-server-c635c9c510394e95c2d7dd30e178a8483818c486.tar.bz2 trackermap-server-c635c9c510394e95c2d7dd30e178a8483818c486.zip |
Fix Suntech commands delimiter
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/SuntechProtocolEncoder.java | 5 |
1 files changed, 1 insertions, 4 deletions
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; |