PowerBroker2 / ELMduino

Arduino OBD-II Bluetooth Scanner Interface Library for Car Hacking Projects
MIT License
587 stars 117 forks source link

Fix for #211 Value returned by supportedPIDS_xx_xx() methods is off by one bit. #213

Closed jimwhitelaw closed 6 months ago

jimwhitelaw commented 6 months ago

Changes processPID() and conditionResponse() to return double instead of float to preserve all bits of response. Adds a shortcut to return response directly without scale/bias processing where none is needed, including when the return value is bit-encoded.