Ensure consistent order for dmamuxes.

This commit is contained in:
Dario Nieuwenhuis 2021-11-28 21:56:02 +01:00
parent 2e8c0bc791
commit ac50274c95

View File

@ -1009,7 +1009,7 @@ def parse_dma():
dmamux_file = 'L4PQ' dmamux_file = 'L4PQ'
if ff.startswith('STM32L4S'): if ff.startswith('STM32L4S'):
dmamux_file = 'L4RS' 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: with open(mf, 'r') as yaml_file:
y = yaml.load(yaml_file) y = yaml.load(yaml_file)
mf = removesuffix(mf, '.yaml') mf = removesuffix(mf, '.yaml')