aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-15 10:21:36 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-15 10:21:36 -0700
commitc4371c759d283bc134e77e79f690e3369dfaf3cc (patch)
treee5ca53a5062415209f21863b4baa46c79a1c3ad8 /src/main
parentbbcfef7775798244b141441208063646d19474ba (diff)
downloadtraccar-server-c4371c759d283bc134e77e79f690e3369dfaf3cc.tar.gz
traccar-server-c4371c759d283bc134e77e79f690e3369dfaf3cc.tar.bz2
traccar-server-c4371c759d283bc134e77e79f690e3369dfaf3cc.zip
Update modular decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index 6229e748e..a5a7c711e 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -989,8 +989,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
break;
case 0x2a:
int input = buf.readUnsignedByte();
- position.set(Position.KEY_DOOR, BitUtil.to(input, 4));
- position.set("tamper", BitUtil.from(input, 4));
+ position.set(Position.KEY_DOOR, BitUtil.to(input, 4) > 0);
+ position.set("tamper", BitUtil.from(input, 4) > 0);
break;
case 0x2b:
int event = buf.readUnsignedByte();