diff options
author | Alexander Menk <menk@mestrona.net> | 2016-12-20 11:00:21 +0100 |
---|---|---|
committer | Alexander Menk <menk@mestrona.net> | 2016-12-20 11:00:21 +0100 |
commit | 7cdf0851113b68d378a3ffca777507d7515aafce (patch) | |
tree | 9d16a9aad93aca477af0194bb090f60e482b8dd6 /src/org/traccar/protocol | |
parent | 884f0d60bb31b063fdac35d91dcd51fe3987f9be (diff) | |
download | trackermap-server-7cdf0851113b68d378a3ffca777507d7515aafce.tar.gz trackermap-server-7cdf0851113b68d378a3ffca777507d7515aafce.tar.bz2 trackermap-server-7cdf0851113b68d378a3ffca777507d7515aafce.zip |
#2702 Rename "Hearts" function to "Indicator" to be more general
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocol.java | 2 | ||||
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolEncoder.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/WatchProtocol.java b/src/org/traccar/protocol/WatchProtocol.java index 57ccf7043..0dc910d8c 100644 --- a/src/org/traccar/protocol/WatchProtocol.java +++ b/src/org/traccar/protocol/WatchProtocol.java @@ -43,7 +43,7 @@ public class WatchProtocol extends BaseProtocol { Command.TYPE_SET_PHONEBOOK, Command.TYPE_VOICE_MESSAGE, Command.TYPE_SET_TIMEZONE, - Command.TYPE_SET_HEARTS + Command.TYPE_SET_INDICATOR ); } diff --git a/src/org/traccar/protocol/WatchProtocolEncoder.java b/src/org/traccar/protocol/WatchProtocolEncoder.java index aa7db6a32..7c96c8a83 100644 --- a/src/org/traccar/protocol/WatchProtocolEncoder.java +++ b/src/org/traccar/protocol/WatchProtocolEncoder.java @@ -106,8 +106,8 @@ public class WatchProtocolEncoder extends StringProtocolEncoder { return formatCommand(command, "UPLOAD,{%s}", Command.KEY_FREQUENCY); case Command.TYPE_SET_TIMEZONE: return formatCommand(command, "LZ,,{%s}", Command.KEY_TIMEZONE); - case Command.TYPE_SET_HEARTS: - return formatCommand(command, "FLOWER,{%s}", Command.KEY_HEARTS); + case Command.TYPE_SET_INDICATOR: + return formatCommand(command, "FLOWER,{%s}", Command.KEY_DATA); default: Log.warning(new UnsupportedOperationException(command.getType())); break; |