diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-29 21:04:29 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-29 21:04:29 -0800 |
commit | 6566236b1e769ef3413a1b03bfa6665a54d63371 (patch) | |
tree | f6086accf2333129a9bbb39772b7fcbf1a46a56d /src/main/java | |
parent | 0e77bb0fd407806ce11593db37aa8557101022fe (diff) | |
download | trackermap-server-6566236b1e769ef3413a1b03bfa6665a54d63371.tar.gz trackermap-server-6566236b1e769ef3413a1b03bfa6665a54d63371.tar.bz2 trackermap-server-6566236b1e769ef3413a1b03bfa6665a54d63371.zip |
Support G1C Pro motion
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index 7a6c305e1..0a8540543 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -403,6 +403,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { int status = buf.readInt(); position.set(Position.KEY_IGNITION, BitUtil.check(status, 0)); + position.set(Position.KEY_MOTION, BitUtil.check(status, 4)); position.set(Position.KEY_BLOCKED, BitUtil.check(status, 10)); position.set(Position.KEY_CHARGE, BitUtil.check(status, 26)); |