diff options
author | drecchia <danilo@deltatecnologia.com> | 2016-07-15 19:05:15 -0300 |
---|---|---|
committer | drecchia <danilo@deltatecnologia.com> | 2016-07-15 19:05:15 -0300 |
commit | 6595b5f4b32c57d8ea4f98512d39292df75a3298 (patch) | |
tree | 6003975de73b1225e389fa1377c81311abe3faf5 /src/org | |
parent | 47156de7455533806b1ba34a872837625c8ccb1a (diff) | |
download | trackermap-server-6595b5f4b32c57d8ea4f98512d39292df75a3298.tar.gz trackermap-server-6595b5f4b32c57d8ea4f98512d39292df75a3298.tar.bz2 trackermap-server-6595b5f4b32c57d8ea4f98512d39292df75a3298.zip |
- Fixed tags.
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/SuntechProtocolEncoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolEncoder.java b/src/org/traccar/protocol/SuntechProtocolEncoder.java index 5f6835e92..000583759 100644 --- a/src/org/traccar/protocol/SuntechProtocolEncoder.java +++ b/src/org/traccar/protocol/SuntechProtocolEncoder.java @@ -34,9 +34,10 @@ public class SuntechProtocolEncoder extends StringProtocolEncoder { if (command.getAttributes().get(Command.KEY_DATA).equals("1")) { return formatCommand(command, "SA200CMD;{%s};02;Enable{%s}\r", Command.KEY_UNIQUE_ID, Command.KEY_INDEX); - } else + } else { return formatCommand(command, "SA200CMD;{%s};02;Disable{%s}\r", Command.KEY_UNIQUE_ID, Command.KEY_INDEX); + } } case Command.TYPE_ENGINE_STOP: return formatCommand(command, "SA200CMD;{%s};02;Enable1\r", Command.KEY_UNIQUE_ID); |