diff options
author | Abyss777 <abyss@fox5.ru> | 2017-05-22 10:42:10 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-05-22 10:42:10 +0500 |
commit | 152e8f2e494275b1259601560abc22bcb39502c3 (patch) | |
tree | d828de08c9c2f7cabf671f6d75ddda459af77507 /src/org/traccar/protocol/VisiontekProtocolDecoder.java | |
parent | 0bafa34ebceba731aae2b45ae9e05c8f55b66b0e (diff) | |
download | trackermap-server-152e8f2e494275b1259601560abc22bcb39502c3.tar.gz trackermap-server-152e8f2e494275b1259601560abc22bcb39502c3.tar.bz2 trackermap-server-152e8f2e494275b1259601560abc22bcb39502c3.zip |
Organize KEY_POWER and KEY_CHARGE using
Diffstat (limited to 'src/org/traccar/protocol/VisiontekProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/VisiontekProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/VisiontekProtocolDecoder.java b/src/org/traccar/protocol/VisiontekProtocolDecoder.java index c430c86d8..51c4deb7b 100644 --- a/src/org/traccar/protocol/VisiontekProtocolDecoder.java +++ b/src/org/traccar/protocol/VisiontekProtocolDecoder.java @@ -114,7 +114,7 @@ public class VisiontekProtocolDecoder extends BaseProtocolDecoder { position.set(Position.PREFIX_IO + 1, parser.next()); position.set(Position.PREFIX_IO + 2, parser.next()); position.set("immobilizer", parser.next()); - position.set(Position.KEY_POWER, parser.next()); + position.set(Position.KEY_CHARGE, parser.next().equals("1")); position.set(Position.KEY_RSSI, parser.next()); } |