aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-14 09:43:34 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-14 09:43:41 -0700
commit5c0962c257d51bef081d25405c972dd54035a0b2 (patch)
treefe2623a42be2369675eda713251a03aefe40e6bb /src/main
parentab8260fa0125b5104255f5d132809b62006be48f (diff)
downloadtrackermap-server-5c0962c257d51bef081d25405c972dd54035a0b2.tar.gz
trackermap-server-5c0962c257d51bef081d25405c972dd54035a0b2.tar.bz2
trackermap-server-5c0962c257d51bef081d25405c972dd54035a0b2.zip
Add bark stopped flag
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index aa43a6054..37e86e243 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -279,7 +279,11 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
break;
case 0x37:
buf.readUnsignedIntLE(); // timestamp
- position.set("barkCount", BitUtil.to(buf.readUnsignedIntLE(), 31));
+ long barking = buf.readUnsignedIntLE();
+ if (BitUtil.check(barking, 31)) {
+ position.set("barkStop", true);
+ }
+ position.set("barkCount", BitUtil.to(barking, 31));
break;
case 0x40:
buf.readUnsignedIntLE(); // timestamp