diff options
author | Anton Tananaev <anton@traccar.org> | 2023-03-14 09:43:34 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-03-14 09:43:41 -0700 |
commit | 5c0962c257d51bef081d25405c972dd54035a0b2 (patch) | |
tree | fe2623a42be2369675eda713251a03aefe40e6bb /src/main/java/org/traccar | |
parent | ab8260fa0125b5104255f5d132809b62006be48f (diff) | |
download | trackermap-server-5c0962c257d51bef081d25405c972dd54035a0b2.tar.gz trackermap-server-5c0962c257d51bef081d25405c972dd54035a0b2.tar.bz2 trackermap-server-5c0962c257d51bef081d25405c972dd54035a0b2.zip |
Add bark stopped flag
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 6 |
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 |