aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authordrecchia <danilo@deltatecnologia.com>2016-07-15 19:05:15 -0300
committerdrecchia <danilo@deltatecnologia.com>2016-07-15 19:05:15 -0300
commit6595b5f4b32c57d8ea4f98512d39292df75a3298 (patch)
tree6003975de73b1225e389fa1377c81311abe3faf5 /src/org/traccar/protocol
parent47156de7455533806b1ba34a872837625c8ccb1a (diff)
downloadtraccar-server-6595b5f4b32c57d8ea4f98512d39292df75a3298.tar.gz
traccar-server-6595b5f4b32c57d8ea4f98512d39292df75a3298.tar.bz2
traccar-server-6595b5f4b32c57d8ea4f98512d39292df75a3298.zip
- Fixed tags.
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/SuntechProtocolEncoder.java3
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);