Fixed single can generation

This commit is contained in:
Jakub Kaderka 2018-12-22 09:12:33 +01:00
parent ceff99507d
commit 4ce121fdb0
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ def gen_defines(project):
defines['I2C_' + label] = match.group(1)
continue
match = re.search(r"CAN(\d)_[RT]X", signal)
match = re.search(r"CAN(\d*)_[RT]X", signal)
if match:
can = match.group(1)
if len(can) == 0: