From c4371c759d283bc134e77e79f690e3369dfaf3cc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 15 Sep 2019 10:21:36 -0700 Subject: Update modular decoding --- src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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(); -- cgit v1.2.3