aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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));