aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AstraProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-19 11:16:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-19 11:16:42 +1300
commitb178acdc21483cc7bd9588453a4d8afc476ca294 (patch)
tree39458bdb15464823e848e0ffa09eca06d957a6d8 /src/org/traccar/protocol/AstraProtocolDecoder.java
parent1f4a8c8af7b67f0b48f30a442c74fbfcf7ccbe97 (diff)
downloadtrackermap-server-b178acdc21483cc7bd9588453a4d8afc476ca294.tar.gz
trackermap-server-b178acdc21483cc7bd9588453a4d8afc476ca294.tar.bz2
trackermap-server-b178acdc21483cc7bd9588453a4d8afc476ca294.zip
Fix check style and pmd issues
Diffstat (limited to 'src/org/traccar/protocol/AstraProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AstraProtocolDecoder.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/AstraProtocolDecoder.java b/src/org/traccar/protocol/AstraProtocolDecoder.java
index 03053ca2d..8cfec95fe 100644
--- a/src/org/traccar/protocol/AstraProtocolDecoder.java
+++ b/src/org/traccar/protocol/AstraProtocolDecoder.java
@@ -78,7 +78,7 @@ public class AstraProtocolDecoder extends BaseProtocolDecoder {
position.setCourse(buf.readUnsignedByte() * 2);
int reason = buf.readUnsignedMedium();
- int status = buf.readUnsignedShort();
+ buf.readUnsignedShort(); // status
position.set(Event.PREFIX_IO + 1, buf.readUnsignedByte());
position.set(Event.PREFIX_ADC + 1, buf.readUnsignedByte());
@@ -107,11 +107,7 @@ public class AstraProtocolDecoder extends BaseProtocolDecoder {
}
- if (BitUtil.check(status, 6)) {
-
- // extra data
-
- }
+ // extra data
positions.add(position);