summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'obd2-lib/src/com/android/car/obd2/commands/RPM.java')
-rw-r--r--obd2-lib/src/com/android/car/obd2/commands/RPM.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/obd2-lib/src/com/android/car/obd2/commands/RPM.java b/obd2-lib/src/com/android/car/obd2/commands/RPM.java
index b277abfc..a062e978 100644
--- a/obd2-lib/src/com/android/car/obd2/commands/RPM.java
+++ b/obd2-lib/src/com/android/car/obd2/commands/RPM.java
@@ -30,7 +30,7 @@ public class RPM implements Obd2Command.OutputSemanticHandler<Integer> {
30 public Optional<Integer> consume(IntegerArrayStream data) { 30 public Optional<Integer> consume(IntegerArrayStream data) {
31 return data.hasAtLeast( 31 return data.hasAtLeast(
32 2, 32 2,
33 theData -> Optional.of(theData.consume() * 256 + theData.consume() / 4), 33 theData -> Optional.of((theData.consume() * 256 + theData.consume()) / 4),
34 theData -> Optional.<Integer>empty()); 34 theData -> Optional.<Integer>empty());
35 } 35 }
36} 36}