DarthAffe / OBD.NET

C#-Library to read data from car through an ELM327-/STN1170-Adapter
GNU General Public License v2.0
184 stars 83 forks source link

Supported Pids #8

Closed StefanKraai closed 6 years ago

StefanKraai commented 6 years ago

Thank you for making this library. When testing it i came across a bug, the Supported pids showed too many pids. I'm not very familiar with bit shifting, but in my view you only shift a bit and check if it's not zero. Example: if ((A << (7 - i)) != 0) i think you miss selecting the bit for checking.

I will make a pull request with a solution, it's not a solution with bit shifting.