Skip to content

Commit

Permalink
#45: made afTable.py deterministic when doing peripheral inheritence
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert authored and More-Wrong committed Jul 29, 2023
1 parent f771a24 commit 52c8c14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# add peripherals which do share numbering systems
extraFuncs = set()
for func in functions:
for func in sorted(functions):
functionChildren[func] = set()
strFuncName = re.search('^[^\d]+', func).group(0)
if(strFuncName in peripheralInheritenceInject):
Expand Down Expand Up @@ -62,7 +62,7 @@
# Then add peripherals which don't share numbering
functionInjectNumberMap = {} # preserves the numbering for given original peripherals
extraFuncs = set()
for func in functions:
for func in sorted(functions):
strFuncName = re.search('^[^\d]+', func).group(0)
match = re.search('\d+', func)
if(match and (strFuncName in peripheralInheritenceIncrement)):
Expand Down

0 comments on commit 52c8c14

Please sign in to comment.