mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
HAL_ChibiOS: fixed bug in DMA resolver
idsets can be empty for a peripheral
This commit is contained in:
parent
ec8abf0b2f
commit
2f7ff778be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user