aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-13 13:44:39 -0800
committerGitHub <noreply@github.com>2019-01-13 13:44:39 -0800
commit4650b7f1c866c9471a7ae79eb355256976d4b6c5 (patch)
tree3bea7545e337aed78c7d0f600ed2259ce27ddb41 /src/org/traccar
parentf61154b15a707e24e306e77149b27acef31d97a4 (diff)
parent50eb6e7ec6364866e4934bb6fd1dd668e8e9fa69 (diff)
downloadtraccar-server-4650b7f1c866c9471a7ae79eb355256976d4b6c5.tar.gz
traccar-server-4650b7f1c866c9471a7ae79eb355256976d4b6c5.tar.bz2
traccar-server-4650b7f1c866c9471a7ae79eb355256976d4b6c5.zip
Merge pull request #4191 from flocsy/TK-binary
fixed exception when String.format thought the binary data has formt placeholders
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/WatchProtocolEncoder.java2
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..17952e3cd 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: