aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-04 22:35:29 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-04 22:35:29 -0800
commit6b7bec4554134517b2f1835d0eb86365e4a8fe42 (patch)
tree454832dd3d277f5d1ffe00baca78187ad9f098e6 /src/main/java/org/traccar/protocol
parent83148e8750ba9689b4dc53f586e0ce1e23cf2032 (diff)
downloadtraccar-server-6b7bec4554134517b2f1835d0eb86365e4a8fe42.tar.gz
traccar-server-6b7bec4554134517b2f1835d0eb86365e4a8fe42.tar.bz2
traccar-server-6b7bec4554134517b2f1835d0eb86365e4a8fe42.zip
Fix RPM decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/BceProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
index 1b354c861..a259e027a 100644
--- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
@@ -113,7 +113,7 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_FUEL_LEVEL, buf.readUnsignedByte());
}
if (BitUtil.check(mask, 4)) {
- position.set(Position.KEY_RPM, buf.readUnsignedShortLE() * 0.0125);
+ position.set(Position.KEY_RPM, buf.readUnsignedShortLE() * 0.125);
}
if (BitUtil.check(mask, 5)) {
position.set(Position.KEY_HOURS, buf.readUnsignedIntLE());