Browse Source

HAL_ChibiOS: fixed bug in DMA resolver

idsets can be empty for a peripheral
c415-sdk
Andrew Tridgell 4 years ago
parent
commit
2f7ff778be
  1. 2
      libraries/AP_HAL_ChibiOS/hwdef/scripts/dma_resolver.py

2
libraries/AP_HAL_ChibiOS/hwdef/scripts/dma_resolver.py

@ -188,7 +188,7 @@ def generate_DMAMUX_map_mask(peripheral_list, channel_mask, noshare_list, dma_ex @@ -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…
Cancel
Save