aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AdmProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/AdmProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AdmProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AdmProtocolDecoder.java b/src/org/traccar/protocol/AdmProtocolDecoder.java
index a22cade99..a40b00e90 100644
--- a/src/org/traccar/protocol/AdmProtocolDecoder.java
+++ b/src/org/traccar/protocol/AdmProtocolDecoder.java
@@ -52,7 +52,7 @@ public class AdmProtocolDecoder extends BaseProtocolDecoder {
identify(buf.toString(buf.readerIndex(), 15, Charset.defaultCharset()), channel);
}
- if (hasDeviceId() && BitUtil.range(type, 0, 2) == 0) {
+ if (hasDeviceId() && BitUtil.to(type, 2) == 0) {
Position position = new Position();
position.setProtocol(getProtocolName());