aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CellocatorProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-02 00:31:18 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-02 00:31:18 -0800
commit9d9778d13be1cef31c7891fc9519edfa54efdc2a (patch)
treed04b3b74b4f727948ae981da3ab53a773d554c0a /src/org/traccar/protocol/CellocatorProtocolDecoder.java
parenta6dab5ead053d641da3221ecacacb3c67bf72fb9 (diff)
downloadtrackermap-server-9d9778d13be1cef31c7891fc9519edfa54efdc2a.tar.gz
trackermap-server-9d9778d13be1cef31c7891fc9519edfa54efdc2a.tar.bz2
trackermap-server-9d9778d13be1cef31c7891fc9519edfa54efdc2a.zip
Fix code issues
Diffstat (limited to 'src/org/traccar/protocol/CellocatorProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/CellocatorProtocolDecoder.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/CellocatorProtocolDecoder.java b/src/org/traccar/protocol/CellocatorProtocolDecoder.java
index 453d8d7e7..d23f76a93 100644
--- a/src/org/traccar/protocol/CellocatorProtocolDecoder.java
+++ b/src/org/traccar/protocol/CellocatorProtocolDecoder.java
@@ -117,12 +117,7 @@ public class CellocatorProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_STATUS, buf.readUnsignedByte() & 0x0f);
- if (alternative) {
- buf.readUnsignedByte(); // configuration flags
- } else {
- buf.readUnsignedByte(); // operator
- }
-
+ buf.readUnsignedByte(); // operator / configuration flags
buf.readUnsignedByte(); // reason data
position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte()));