diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-15 10:20:17 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-15 10:20:17 -0700 |
commit | bbcfef7775798244b141441208063646d19474ba (patch) | |
tree | b52b5e71bf5c7f59934d009c21564c95848d8884 /src/main/java/org | |
parent | 9279e3fd0f416a236c4c30fd9dc94e8c21b9369a (diff) | |
download | traccar-server-bbcfef7775798244b141441208063646d19474ba.tar.gz traccar-server-bbcfef7775798244b141441208063646d19474ba.tar.bz2 traccar-server-bbcfef7775798244b141441208063646d19474ba.zip |
Update modular decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index dc7a95955..6229e748e 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -988,7 +988,9 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_INDEX, buf.readUnsignedInt()); break; case 0x2a: - position.set(Position.KEY_INPUT, buf.readUnsignedByte()); + int input = buf.readUnsignedByte(); + position.set(Position.KEY_DOOR, BitUtil.to(input, 4)); + position.set("tamper", BitUtil.from(input, 4)); break; case 0x2b: int event = buf.readUnsignedByte(); |