aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/VisiontekProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-04 11:27:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-04 11:27:23 +1200
commit57aec3786c265baac375720e5c5389035f12591b (patch)
tree18f4afc99aad4b5af2b6c2526cbde635e8cddb18 /src/org/traccar/protocol/VisiontekProtocolDecoder.java
parent93feb8a5484fd6c4c3da2032d4c843b3194b5ff7 (diff)
downloadtrackermap-server-57aec3786c265baac375720e5c5389035f12591b.tar.gz
trackermap-server-57aec3786c265baac375720e5c5389035f12591b.tar.bz2
trackermap-server-57aec3786c265baac375720e5c5389035f12591b.zip
More other data cleanup
Diffstat (limited to 'src/org/traccar/protocol/VisiontekProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/VisiontekProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/VisiontekProtocolDecoder.java b/src/org/traccar/protocol/VisiontekProtocolDecoder.java
index b9ac60f27..aeabed039 100644
--- a/src/org/traccar/protocol/VisiontekProtocolDecoder.java
+++ b/src/org/traccar/protocol/VisiontekProtocolDecoder.java
@@ -121,9 +121,9 @@ public class VisiontekProtocolDecoder extends BaseProtocolDecoder {
// Additional data
position.set(Event.KEY_SATELLITES, parser.group(index++));
position.set(Event.KEY_ODOMETER, parser.group(index++));
- position.set("ignition", parser.group(index++));
- position.set("input1", parser.group(index++));
- position.set("input2", parser.group(index++));
+ position.set(Event.KEY_IGNITION, parser.group(index++));
+ position.set(Event.PREFIX_IO + 1, parser.group(index++));
+ position.set(Event.PREFIX_IO + 2, parser.group(index++));
position.set("immobilizer", parser.group(index++));
position.set(Event.KEY_POWER, parser.group(index++));
position.set(Event.KEY_GSM, parser.group(index++));
@@ -132,7 +132,7 @@ public class VisiontekProtocolDecoder extends BaseProtocolDecoder {
position.setValid(parser.group(index++).compareTo("A") == 0);
// RFID
- position.set("rfid", parser.group(index++));
+ position.set(Event.KEY_RFID, parser.group(index++));
return position;
}