Closed thdankert closed 6 years ago
To debug this issue, I used your "OBD II Expert" app in simulator mode and used the vehicle "Mercedes-Benz GL-Class...", which has some stored DTCs with hex chars.
This is only a workaround for the wrong conversion - one could also rewrite the whole method (and it's caller) to not work with ascii values, but passthrough the received DTC as-is (after converting the first character).
Thanks for your contribution!
Correctly handle hex chars (A-F) in DTC response from adapter. When converting characters other than 0-9, we need to add 0x37 to receive the same ASCII character as the hex char.
Added code to check this in -dtcCodeForA:B: