aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-15 10:20:17 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-15 10:20:17 -0700
commitbbcfef7775798244b141441208063646d19474ba (patch)
treeb52b5e71bf5c7f59934d009c21564c95848d8884 /src/main/java/org/traccar
parent9279e3fd0f416a236c4c30fd9dc94e8c21b9369a (diff)
downloadtrackermap-server-bbcfef7775798244b141441208063646d19474ba.tar.gz
trackermap-server-bbcfef7775798244b141441208063646d19474ba.tar.bz2
trackermap-server-bbcfef7775798244b141441208063646d19474ba.zip
Update modular decoding
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java4
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();