aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritxp2008 <7779966+itxp2008@users.noreply.github.com>2018-05-04 11:24:06 +0300
committerGitHub <noreply@github.com>2018-05-04 11:24:06 +0300
commitb935a43fa4bdb27be6ecf199a8446933984ecdf4 (patch)
treee65e0060df37c16eb49336e2383d3ad5c9d1c31f
parent4713a115fbe4a37ddf24e96edeab800843607f90 (diff)
downloadtrackermap-server-b935a43fa4bdb27be6ecf199a8446933984ecdf4.tar.gz
trackermap-server-b935a43fa4bdb27be6ecf199a8446933984ecdf4.tar.bz2
trackermap-server-b935a43fa4bdb27be6ecf199a8446933984ecdf4.zip
correct course
-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..cf8fe6241 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());