aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-16 22:36:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-16 22:36:00 -0700
commit18d86933c465f87e028e9f065c973cf390a2578b (patch)
tree5851ed3a46129e571f7ae9ed12a13d82b16e258e /src/main/java/org/traccar/protocol
parent298fbd76d79c3cb22766d00a37198ee9d970d277 (diff)
downloadtrackermap-server-18d86933c465f87e028e9f065c973cf390a2578b.tar.gz
trackermap-server-18d86933c465f87e028e9f065c973cf390a2578b.tar.bz2
trackermap-server-18d86933c465f87e028e9f065c973cf390a2578b.zip
Fix Oyster Sigfix decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java b/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
index 8379fca82..ce577f392 100644
--- a/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
@@ -176,7 +176,7 @@ public class SigfoxProtocolDecoder extends BaseHttpProtocolDecoder {
} else if (event >> 4 <= 3 && buf.writerIndex() == 12) {
- if (event >> 4 == 0) {
+ if (BitUtil.to(event, 4) == 0) {
position.setValid(true);
position.setLatitude(buf.readIntLE() * 0.0000001);
position.setLongitude(buf.readIntLE() * 0.0000001);