aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/HaicomProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/HaicomProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/HaicomProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/HaicomProtocolDecoder.java b/src/org/traccar/protocol/HaicomProtocolDecoder.java
index 303f96793..fc144e934 100644
--- a/src/org/traccar/protocol/HaicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/HaicomProtocolDecoder.java
@@ -78,7 +78,7 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(getDeviceId());
// Firmware version
- position.set("version", parser.group(index++));
+ position.set(Event.KEY_VERSION, parser.group(index++));
// Date
Calendar time = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
@@ -115,7 +115,7 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder {
// Additional data
position.set(Event.KEY_STATUS, parser.group(index++));
- position.set("gprs", parser.group(index++));
+ position.set(Event.KEY_GSM, parser.group(index++));
position.set(Event.KEY_GPS, parser.group(index++));
position.set(Event.KEY_INPUT, parser.group(index++));
position.set(Event.KEY_OUTPUT, parser.group(index++));