Skip to content

MAF calculation error #16

@Chaosflo

Description

@Chaosflo

I found i small math error in the formula!

On Line 103 in obdinfo.js
return (parseInt(byteA, 16) * 256.0) + (parseInt(byteB, 16) / 100);
A*256+(B/100)

This formular is slightly wrong

This is the fix!
return ((parseInt(byteA, 16) * 256.0) + parseInt(byteB, 16)) / 100;
((A*256)+B)/100

Thanks for fixing!
=)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions