From 8c9489b9ed91da50b4f5752e0876bccdb1f794d2 Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Wed, 3 May 2017 15:46:31 +0530 Subject: Change GT06 command result to result key from command key. --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 5ddca8096..ef2237ad1 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -305,7 +305,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { if (commandLength > 0) { buf.readUnsignedByte(); // server flag (reserved) - position.set(Position.KEY_COMMAND, + position.set(Position.KEY_RESULT, buf.readBytes(commandLength - 1).toString(StandardCharsets.US_ASCII)); } -- cgit v1.2.3