Skip to content

Commit

Permalink
Merge pull request #826 from shrlnm/patch-1
Browse files Browse the repository at this point in the history
fix for reading empty vin
  • Loading branch information
cedricp authored Jun 2, 2023
2 parents ca90e07 + 8e97631 commit 9f7b23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecu.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def getDisplayValue(self, elm_data, dataitem, ecu_endian):
return None

if self.bytesascii:
return bytes.fromhex(value).decode('utf-8')
return bytes.fromhex(value).decode('utf-8',errors="ignore")

# I think we want Hex format for non scaled values
if not self.scaled:
Expand Down

0 comments on commit 9f7b23e

Please sign in to comment.