aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
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);