diff --git a/lib/obdInfo.js b/lib/obdInfo.js index a5a72d7..aa774a2 100644 --- a/lib/obdInfo.js +++ b/lib/obdInfo.js @@ -100,7 +100,7 @@ function convertSparkAdvance(byte) { return (parseInt(byte, 16) / 2) - 64; } function convertAirFlowRate(byteA, byteB) { - return (parseInt(byteA, 16) * 256.0) + (parseInt(byteB, 16) / 100); + return (parseInt(byteA, 16) * 256 + parseInt(byteB, 16)) / 100; } function convertThrottlePos(byte) { return parseInt(byte, 16) * (100 / 255);