From b935a43fa4bdb27be6ecf199a8446933984ecdf4 Mon Sep 17 00:00:00 2001 From: itxp2008 <7779966+itxp2008@users.noreply.github.com> Date: Fri, 4 May 2018 11:24:06 +0300 Subject: correct course --- src/org/traccar/protocol/BceProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3 From 5a50a4457229ab37b436d24754398a39c3916755 Mon Sep 17 00:00:00 2001 From: itxp2008 <7779966+itxp2008@users.noreply.github.com> Date: Mon, 7 May 2018 11:02:25 +0300 Subject: Whitespace * --- src/org/traccar/protocol/BceProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java index cf8fe6241..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()*2); + position.setCourse(buf.readUnsignedByte() * 2); position.setAltitude(buf.readUnsignedShort()); position.set(Position.KEY_ODOMETER, buf.readUnsignedInt()); -- cgit v1.2.3