mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
HAL_ChibiOS: fix undef line processing
This commit is contained in:
parent
8286486890
commit
c60c0b8ab1
@ -773,6 +773,12 @@ def process_line(line):
|
|||||||
spidev.append(a[1:])
|
spidev.append(a[1:])
|
||||||
if a[0] == 'undef':
|
if a[0] == 'undef':
|
||||||
config.pop(a[1], '')
|
config.pop(a[1], '')
|
||||||
|
#also remove all occurences of defines in previous lines if any
|
||||||
|
for line in alllines:
|
||||||
|
if line.startswith('define') and a[1] in line:
|
||||||
|
alllines.remove(line)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user