Skip to content

Commit

Permalink
Fixed serial number range (#1650)
Browse files Browse the repository at this point in the history
Fix lower serial number value
  • Loading branch information
pierreluctg authored Aug 25, 2023
1 parent 4267e44 commit 1774051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion can/interfaces/ics_neovi/neovi_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def get_serial_number(device):
:return: ics device serial string
:rtype: str
"""
if int("AA0000", 36) < device.SerialNumber < int("ZZZZZZ", 36):
if int("0A0000", 36) < device.SerialNumber < int("ZZZZZZ", 36):
return ics.base36enc(device.SerialNumber)
else:
return str(device.SerialNumber)
Expand Down

0 comments on commit 1774051

Please sign in to comment.