HAL_ChibiOS: fixed bug in DMA resolver

idsets can be empty for a peripheral
This commit is contained in:
Andrew Tridgell 2021-03-12 10:30:17 +11:00
parent ec8abf0b2f
commit 2f7ff778be
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ def generate_DMAMUX_map_mask(peripheral_list, channel_mask, noshare_list, dma_ex
else:
other = None
if other is not None and ii in idsets[other]:
if other is not None and other in idsets and ii in idsets[other]:
if len(idsets[p]) >= len(idsets[other]) and len(idsets[other]) > 0:
continue
idsets[other].remove(ii)