aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatjaž Črnko <matjaz.crnko@gmail.com>2021-10-20 20:42:20 +0200
committerGitHub <noreply@github.com>2021-10-20 20:42:20 +0200
commit72ada0ce78ee824b2d54cc4d37311ddd7cd216ee (patch)
tree39cf8499265c577dd007bb4d63f3839a73de3b3e
parentb4de72d4a0bf73998224d08a3bd2ba8310d83f8d (diff)
downloadtrackermap-server-72ada0ce78ee824b2d54cc4d37311ddd7cd216ee.tar.gz
trackermap-server-72ada0ce78ee824b2d54cc4d37311ddd7cd216ee.tar.bz2
trackermap-server-72ada0ce78ee824b2d54cc4d37311ddd7cd216ee.zip
Update src/main/java/org/traccar/protocol/TotemProtocolDecoder.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
-rw-r--r--src/main/java/org/traccar/protocol/TotemProtocolDecoder.java8
1 files changed, 1 insertions, 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());