diff options
author | Ivan Muratov <binakot@gmail.com> | 2017-11-03 15:10:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-03 15:10:45 +0300 |
commit | 4e07d664cac49fcbb47376471ef9f4d770293ba9 (patch) | |
tree | 7eaa0886dcb6e44cf4d4aa549abbbaca6533f654 /src/org/traccar/protocol/Pt502ProtocolEncoder.java | |
parent | 74cea90707321c775c11e9cfb91269f63ab4476f (diff) | |
parent | c62dd84c7ad4061c0c6d8a521c63857ccde461ba (diff) | |
download | trackermap-server-4e07d664cac49fcbb47376471ef9f4d770293ba9.tar.gz trackermap-server-4e07d664cac49fcbb47376471ef9f4d770293ba9.tar.bz2 trackermap-server-4e07d664cac49fcbb47376471ef9f4d770293ba9.zip |
Merge branch 'master' into master
Diffstat (limited to 'src/org/traccar/protocol/Pt502ProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/Pt502ProtocolEncoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Pt502ProtocolEncoder.java b/src/org/traccar/protocol/Pt502ProtocolEncoder.java index 4a876f6da..bd56e306a 100644 --- a/src/org/traccar/protocol/Pt502ProtocolEncoder.java +++ b/src/org/traccar/protocol/Pt502ProtocolEncoder.java @@ -41,6 +41,8 @@ public class Pt502ProtocolEncoder extends StringProtocolEncoder implements Strin protected Object encodeCommand(Command command) { switch (command.getType()) { + case Command.TYPE_CUSTOM: + return formatCommand(command, "{%s}\r\n", Command.KEY_DATA); case Command.TYPE_OUTPUT_CONTROL: return formatCommand(command, "#OPC{%s},{%s}\r\n", Command.KEY_INDEX, Command.KEY_DATA); case Command.TYPE_SET_TIMEZONE: |