mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: allow undef of SPI devices
This commit is contained in:
parent
7fc5a7135a
commit
1ff3ee7a12
|
@ -2671,6 +2671,9 @@ def process_line(line):
|
|||
bylabel.pop(u, '')
|
||||
alttype.pop(u, '')
|
||||
altlabel.pop(u, '')
|
||||
for dev in spidev:
|
||||
if u == dev[0]:
|
||||
spidev.remove(dev)
|
||||
# also remove all occurences of defines in previous lines if any
|
||||
for line in alllines[:]:
|
||||
if line.startswith('define') and u == line.split()[1]:
|
||||
|
|
Loading…
Reference in New Issue