aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/BceProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-05-08 18:26:30 +1200
committerGitHub <noreply@github.com>2018-05-08 18:26:30 +1200
commitbf64e10bf3062a2d76dd2302f3c169e8f7478aa1 (patch)
treeefe1a01655924375b0ba6476b37359b0eecd1630 /src/org/traccar/protocol/BceProtocolDecoder.java
parent7d8f1c6546698c2e959f27920e239ae9d95bf455 (diff)
parent5a50a4457229ab37b436d24754398a39c3916755 (diff)
downloadtrackermap-server-bf64e10bf3062a2d76dd2302f3c169e8f7478aa1.tar.gz
trackermap-server-bf64e10bf3062a2d76dd2302f3c169e8f7478aa1.tar.bz2
trackermap-server-bf64e10bf3062a2d76dd2302f3c169e8f7478aa1.zip
Merge pull request #3868 from itxp2008/patch-1
Correct BCE course
Diffstat (limited to 'src/org/traccar/protocol/BceProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/BceProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java
index db0ec8c66..f48757a4f 100644
--- a/src/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/org/traccar/protocol/BceProtocolDecoder.java
@@ -100,7 +100,7 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, BitUtil.to(status, 4));
position.set(Position.KEY_HDOP, BitUtil.from(status, 4));
- position.setCourse(buf.readUnsignedByte());
+ position.setCourse(buf.readUnsignedByte() * 2);
position.setAltitude(buf.readUnsignedShort());
position.set(Position.KEY_ODOMETER, buf.readUnsignedInt());