aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-11 04:29:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-11 04:29:08 +1200
commit96b48f5cb2bf214059de2875194634b0801fcc94 (patch)
treef85ec52401d136b6f90ae9ec72652bcdd137a3b4 /src/org
parent14c62897716d57ba6271b522c2218210c2868c3c (diff)
downloadtrackermap-server-96b48f5cb2bf214059de2875194634b0801fcc94.tar.gz
trackermap-server-96b48f5cb2bf214059de2875194634b0801fcc94.tar.bz2
trackermap-server-96b48f5cb2bf214059de2875194634b0801fcc94.zip
Fix Galileo command encoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/GalileoProtocolEncoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GalileoProtocolEncoder.java b/src/org/traccar/protocol/GalileoProtocolEncoder.java
index 2890d0ca1..cb6028abb 100644
--- a/src/org/traccar/protocol/GalileoProtocolEncoder.java
+++ b/src/org/traccar/protocol/GalileoProtocolEncoder.java
@@ -57,9 +57,9 @@ public class GalileoProtocolEncoder extends BaseProtocolEncoder {
switch (command.getType()) {
case Command.TYPE_CUSTOM:
- return encodeText(getUniqueId(command.getId()), command.getString(Command.KEY_DATA));
+ return encodeText(getUniqueId(command.getDeviceId()), command.getString(Command.KEY_DATA));
case Command.TYPE_OUTPUT_CONTROL:
- return encodeText(getUniqueId(command.getId()),
+ return encodeText(getUniqueId(command.getDeviceId()),
"Out " + command.getInteger(Command.KEY_INDEX) + "," + command.getString(Command.KEY_DATA));
default:
Log.warning(new UnsupportedOperationException(command.getType()));