diff options
author | Gavriel Fleischer <flocsy@gmail.com> | 2019-01-13 19:39:50 +0200 |
---|---|---|
committer | Gavriel Fleischer <flocsy@gmail.com> | 2019-01-13 19:39:50 +0200 |
commit | 84dc470751c7cc346a3a434cfe6b1f4ce60c717c (patch) | |
tree | 82c9157353583e440bbc087d4dea1598a393a24a /src/org/traccar | |
parent | 82b4ebc742f8801d6a0ef97514f163dd66cb5327 (diff) | |
download | trackermap-server-84dc470751c7cc346a3a434cfe6b1f4ce60c717c.tar.gz trackermap-server-84dc470751c7cc346a3a434cfe6b1f4ce60c717c.tar.bz2 trackermap-server-84dc470751c7cc346a3a434cfe6b1f4ce60c717c.zip |
fixed exception when String.format thought the binary data has format placeholders
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolEncoder.java b/src/org/traccar/protocol/WatchProtocolEncoder.java index 482f2f0bf..b18aae276 100644 --- a/src/org/traccar/protocol/WatchProtocolEncoder.java +++ b/src/org/traccar/protocol/WatchProtocolEncoder.java @@ -135,7 +135,7 @@ public class WatchProtocolEncoder extends StringProtocolEncoder implements Strin case Command.TYPE_SET_PHONEBOOK: return formatCommand(channel, command, "PHB,{%s}", Command.KEY_DATA); case Command.TYPE_VOICE_MESSAGE: - return formatCommand(channel, command, "TK," + getBinaryData(command)); + return formatCommand(channel, command, "TK,{%s}", getBinaryData(command)); case Command.TYPE_POSITION_PERIODIC: return formatCommand(channel, command, "UPLOAD,{%s}", Command.KEY_FREQUENCY); case Command.TYPE_SET_TIMEZONE: |