aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Xt013ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Xt013ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Xt013ProtocolDecoder.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Xt013ProtocolDecoder.java b/src/org/traccar/protocol/Xt013ProtocolDecoder.java
index c1e1c3e65..62deed0ea 100644
--- a/src/org/traccar/protocol/Xt013ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xt013ProtocolDecoder.java
@@ -18,6 +18,7 @@ package org.traccar.protocol;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
+import org.traccar.model.Event;
import org.traccar.model.Position;
import java.text.ParseException;
@@ -99,9 +100,9 @@ public class Xt013ProtocolDecoder extends BaseProtocolDecoder {
position.setValid(parser.group(index++).equals("F"));
// Other
- position.set("gps", parser.group(index++));
- position.set("gsm", parser.group(index++));
- position.set("battery", parser.group(index++));
+ position.set(Event.KEY_GPS, parser.group(index++));
+ position.set(Event.KEY_GSM, parser.group(index++));
+ position.set(Event.KEY_BATTERY, parser.group(index++));
position.set("charging", parser.group(index++));
return position;
}