diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-05-08 18:26:30 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 18:26:30 +1200 |
commit | bf64e10bf3062a2d76dd2302f3c169e8f7478aa1 (patch) | |
tree | efe1a01655924375b0ba6476b37359b0eecd1630 /src/org/traccar/protocol/BceProtocolDecoder.java | |
parent | 7d8f1c6546698c2e959f27920e239ae9d95bf455 (diff) | |
parent | 5a50a4457229ab37b436d24754398a39c3916755 (diff) | |
download | trackermap-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.java | 2 |
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()); |