diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 13:58:50 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 13:58:50 +1300 |
commit | 7a80a011789dced9db2c6cdc65cb327d87a6d2b1 (patch) | |
tree | 5a3c4dd7ef7976fd4ed5add55afebb7e412da8e8 /src/org/traccar/protocol/NavigilProtocolDecoder.java | |
parent | fcfd745a4e234c2f8c0364bbc462460bc20da8e2 (diff) | |
download | trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.tar.gz trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.tar.bz2 trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.zip |
Fix some PMD reported bugs
Diffstat (limited to 'src/org/traccar/protocol/NavigilProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/NavigilProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NavigilProtocolDecoder.java b/src/org/traccar/protocol/NavigilProtocolDecoder.java index 3e38890d4..686c8a691 100644 --- a/src/org/traccar/protocol/NavigilProtocolDecoder.java +++ b/src/org/traccar/protocol/NavigilProtocolDecoder.java @@ -188,7 +188,7 @@ public class NavigilProtocolDecoder extends BaseProtocolDecoder { short flags = buf.readUnsignedByte(); position.setValid((flags & 0x80) == 0x80 && (flags & 0x40) == 0x40); - int x = buf.readUnsignedByte(); // satellites in fix + position.set(Event.KEY_SATELLITES, buf.readUnsignedByte()); buf.readUnsignedInt(); // distance return position; } |