aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-12-02 17:22:46 -0800
committerAnton Tananaev <anton@traccar.org>2022-12-02 17:22:46 -0800
commit2fcd5c8decf9f329c3e2325ce950d2b0493b29ab (patch)
tree10c0fd28b8e703149a19ed04e3dccea059b3c018 /src
parent36579b977f34dd5393aef19b63160fb1ffba09f4 (diff)
downloadtrackermap-server-2fcd5c8decf9f329c3e2325ce950d2b0493b29ab.tar.gz
trackermap-server-2fcd5c8decf9f329c3e2325ce950d2b0493b29ab.tar.bz2
trackermap-server-2fcd5c8decf9f329c3e2325ce950d2b0493b29ab.zip
Decode Cellocator CR300 reason
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java4
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());