Skip to content

Commit

Permalink
fixup: hotfix for wrong f1 dma2 device data
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-durand committed Jun 4, 2021
1 parent 0d17f06 commit 75197f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modm/platform/dma/stm32/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def build(env):
controller.append({"instance": int(instance), "min_channel": int(min_channel), "max_channel": int(max_channel)})

did = device.identifier
if (did.family in ['f0'] and did.name == '30' and did.size == 'c') or (did.family in ['f1'] and did.name == '02'):
if (did.family in ['f0'] and did.name == '30' and did.size == 'c') or \
(did.family in ['f1'] and did.name not in ['05', '07'] and did.size in ['4', '6', '8', 'b']):
# FIXME: Bug in modm-deviced data: Dma2 does not exist on device.identifier
properties["dma"]["instance"].remove('2')

Expand Down

0 comments on commit 75197f5

Please sign in to comment.