diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-11 20:11:55 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-11 20:11:55 -0700 |
commit | 6d737a665b905b8e4394d63962386ce51ef96509 (patch) | |
tree | 4755cd222319ac51dfbb983f2eb4f8e20b240778 /src/main/java/org/traccar | |
parent | 7e50d16b6dd99882c53db9d4af3e48548749b78d (diff) | |
download | trackermap-server-6d737a665b905b8e4394d63962386ce51ef96509.tar.gz trackermap-server-6d737a665b905b8e4394d63962386ce51ef96509.tar.bz2 trackermap-server-6d737a665b905b8e4394d63962386ce51ef96509.zip |
Minor cleanup
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java index ac75841a4..00e297faa 100644 --- a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java @@ -86,9 +86,10 @@ public class MobilogixProtocolDecoder extends BaseProtocolDecoder { if (deviceSession == null) { return null; } - position.set(Position.KEY_TYPE, type); position.setDeviceId(deviceSession.getDeviceId()); + position.set(Position.KEY_TYPE, type); + int status = parser.nextHexInt(); position.set(Position.KEY_IGNITION, BitUtil.check(status, 2)); position.set(Position.KEY_MOTION, BitUtil.check(status, 3)); |