Skip to content

Commit 5b9a8b8

Browse files
ChaosfloChristian Paul
authored andcommitted
Fix parsing of AirFlowRate
1 parent c5c842b commit 5b9a8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/obdInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function convertSparkAdvance(byte) {
100100
return (parseInt(byte, 16) / 2) - 64;
101101
}
102102
function convertAirFlowRate(byteA, byteB) {
103-
return (parseInt(byteA, 16) * 256.0) + (parseInt(byteB, 16) / 100);
103+
return (parseInt(byteA, 16) * 256 + parseInt(byteB, 16)) / 100;
104104
}
105105
function convertThrottlePos(byte) {
106106
return parseInt(byte, 16) * (100 / 255);

0 commit comments

Comments
 (0)