aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SuntechProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-16 10:34:07 +1200
committerGitHub <noreply@github.com>2016-07-16 10:34:07 +1200
commit6fefd48ab48a2382a9a7bc07e168b48a1ce8bc40 (patch)
tree6003975de73b1225e389fa1377c81311abe3faf5 /src/org/traccar/protocol/SuntechProtocolEncoder.java
parent47156de7455533806b1ba34a872837625c8ccb1a (diff)
parent6595b5f4b32c57d8ea4f98512d39292df75a3298 (diff)
downloadtraccar-server-6fefd48ab48a2382a9a7bc07e168b48a1ce8bc40.tar.gz
traccar-server-6fefd48ab48a2382a9a7bc07e168b48a1ce8bc40.tar.bz2
traccar-server-6fefd48ab48a2382a9a7bc07e168b48a1ce8bc40.zip
Merge pull request #2117 from drecchia/master-fix-checkstyle-suntech
Fixed check style issue
Diffstat (limited to 'src/org/traccar/protocol/SuntechProtocolEncoder.java')
-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);