From ac50274c955ff67f31ee32099bddeb06d75e7ce1 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 28 Nov 2021 21:56:02 +0100 Subject: [PATCH] Ensure consistent order for dmamuxes. --- stm32data/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32data/__main__.py b/stm32data/__main__.py index 7cee97f..c33ced9 100755 --- a/stm32data/__main__.py +++ b/stm32data/__main__.py @@ -1009,7 +1009,7 @@ def parse_dma(): dmamux_file = 'L4PQ' if ff.startswith('STM32L4S'): dmamux_file = 'L4RS' - for mf in glob('data/dmamux/{}_*.yaml'.format(dmamux_file)): + for mf in sorted(glob('data/dmamux/{}_*.yaml'.format(dmamux_file))): with open(mf, 'r') as yaml_file: y = yaml.load(yaml_file) mf = removesuffix(mf, '.yaml')