From 52c8c14efcd9e29a824fc12b9234035afa9a4bd0 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 19 Dec 2022 16:53:12 +0000 Subject: [PATCH] #45: made afTable.py deterministic when doing peripheral inheritence --- .../arm/implementations/no-os-stm32/src/main/afTable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receivers/native/arm/implementations/no-os-stm32/src/main/afTable.py b/receivers/native/arm/implementations/no-os-stm32/src/main/afTable.py index 9a87297bd..9be000253 100755 --- a/receivers/native/arm/implementations/no-os-stm32/src/main/afTable.py +++ b/receivers/native/arm/implementations/no-os-stm32/src/main/afTable.py @@ -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): @@ -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)):