From 96b48f5cb2bf214059de2875194634b0801fcc94 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 11 Jul 2017 04:29:08 +1200 Subject: Fix Galileo command encoder --- src/org/traccar/protocol/GalileoProtocolEncoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org') 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())); -- cgit v1.2.3