Skip to content

Commit

Permalink
Merge pull request traccar#2117 from drecchia/master-fix-checkstyle-s…
Browse files Browse the repository at this point in the history
…untech

Fixed check style issue
  • Loading branch information
tananaev authored Jul 15, 2016
2 parents 47156de + 6595b5f commit 6fefd48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/traccar/protocol/SuntechProtocolEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ protected Object encodeCommand(Command command) {
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);
Expand Down

0 comments on commit 6fefd48

Please sign in to comment.