diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-07-29 23:31:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-07-29 23:31:45 -0700 |
commit | 32a3e0e512602afd25a1ad90d1861d71f918a9f4 (patch) | |
tree | bc6885097918c67abc0590e40ee2db90ec516030 /src/main/java/org | |
parent | 9fb2e1f44a49f088f7239b2a2fcf0ff4533aa99c (diff) | |
download | trackermap-server-32a3e0e512602afd25a1ad90d1861d71f918a9f4.tar.gz trackermap-server-32a3e0e512602afd25a1ad90d1861d71f918a9f4.tar.bz2 trackermap-server-32a3e0e512602afd25a1ad90d1861d71f918a9f4.zip |
Decode ignition value
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java index 940d43a56..5c2c26da7 100644 --- a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java @@ -264,7 +264,7 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_BATTERY, BcdUtil.readInteger(buf, 2) * 0.1); position.set("solarPanel", BcdUtil.readInteger(buf, 2) * 0.1); position.set(Position.KEY_ODOMETER, buf.readUnsignedInt()); - position.set(Position.KEY_STATUS, buf.readUnsignedShort()); + position.set(Position.KEY_IGNITION, BitUtil.check(buf.readUnsignedShort(), 2)); } else if (buf.readableBytes() >= 2) { |