From 72ada0ce78ee824b2d54cc4d37311ddd7cd216ee Mon Sep 17 00:00:00 2001 From: Matjaž Črnko Date: Wed, 20 Oct 2021 20:42:20 +0200 Subject: Update src/main/java/org/traccar/protocol/TotemProtocolDecoder.java Co-authored-by: Anton Tananaev --- src/main/java/org/traccar/protocol/TotemProtocolDecoder.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/org/traccar/protocol/TotemProtocolDecoder.java b/src/main/java/org/traccar/protocol/TotemProtocolDecoder.java index 81948f16d..dc4347f00 100644 --- a/src/main/java/org/traccar/protocol/TotemProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TotemProtocolDecoder.java @@ -375,13 +375,7 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder { position.set(Position.PREFIX_OUT + 1, BitUtil.check(status, 32 - 9)); position.set(Position.PREFIX_OUT + 2, BitUtil.check(status, 32 - 10)); position.set(Position.PREFIX_OUT + 3, BitUtil.check(status, 32 - 11)); - - /** - * Different Devices have different meaning for bits 12-22 - * But unfortunately we cannot reliably detect this, so we store the whole status in KEY_STATUS - * See: https://github.com/traccar/traccar/pull/4762 - */ - position.set(Position.KEY_STATUS, status); + position.set(Position.KEY_STATUS, status); // see https://github.com/traccar/traccar/pull/4762 position.setTime(parser.nextDateTime()); -- cgit v1.2.3