diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-02 17:22:46 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-02 17:22:46 -0800 |
commit | 2fcd5c8decf9f329c3e2325ce950d2b0493b29ab (patch) | |
tree | 10c0fd28b8e703149a19ed04e3dccea059b3c018 | |
parent | 36579b977f34dd5393aef19b63160fb1ffba09f4 (diff) | |
download | trackermap-server-2fcd5c8decf9f329c3e2325ce950d2b0493b29ab.tar.gz trackermap-server-2fcd5c8decf9f329c3e2325ce950d2b0493b29ab.tar.bz2 trackermap-server-2fcd5c8decf9f329c3e2325ce950d2b0493b29ab.zip |
Decode Cellocator CR300 reason
-rw-r--r-- | src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java b/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java index ecd09a2d8..07f7f1692 100644 --- a/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2013 - 2022 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -119,7 +119,7 @@ public class CellocatorProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_STATUS, buf.readUnsignedByte() & 0x0f); buf.readUnsignedByte(); // operator / configuration flags - buf.readUnsignedByte(); // reason data + position.set(Position.KEY_EVENT, buf.readUnsignedByte()); position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte())); position.set("mode", buf.readUnsignedByte()); |