aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorYuriy Piskarev <yuriy.piskarev@gmail.com>2022-03-28 21:21:21 +0300
committerYuriy Piskarev <yuriy.piskarev@gmail.com>2022-03-28 21:21:21 +0300
commit3a4757af42f4a7382b1b70cf4768023152238b32 (patch)
tree86bbb478541a96dfb9aad4e277d0ccd564ef603c /src/main/java/org
parentc14413c5bf0d2989109b4369fdb95a49f128c169 (diff)
downloadtrackermap-server-3a4757af42f4a7382b1b70cf4768023152238b32.tar.gz
trackermap-server-3a4757af42f4a7382b1b70cf4768023152238b32.tar.bz2
trackermap-server-3a4757af42f4a7382b1b70cf4768023152238b32.zip
- replacing expression with BitUtil;
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
index df53d7c3d..37729236e 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -211,7 +211,7 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
case 8:
value = buf.readUnsignedByte();
position.setValid(BitUtil.check(value, 1));
- position.set(Position.KEY_SATELLITES, ((value & 0b11111100) >> 2));
+ position.set(Position.KEY_SATELLITES, BitUtil.from(value, 2));
break;
case 9:
position.setFixTime(new Date(buf.readUnsignedIntLE() * 1000));