mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: make include file mistakes nicer to interpret
This commit is contained in:
parent
f3766b831a
commit
535f806c96
@ -618,8 +618,12 @@ def get_ap_periph_boards():
|
|||||||
hwdef = os.path.join(dirname, d, 'hwdef.dat')
|
hwdef = os.path.join(dirname, d, 'hwdef.dat')
|
||||||
if os.path.exists(hwdef):
|
if os.path.exists(hwdef):
|
||||||
ch = chibios_hwdef.ChibiOSHWDef(hwdef=[hwdef], quiet=True)
|
ch = chibios_hwdef.ChibiOSHWDef(hwdef=[hwdef], quiet=True)
|
||||||
|
try:
|
||||||
if ch.is_periph_fw_unprocessed():
|
if ch.is_periph_fw_unprocessed():
|
||||||
list_ap.append(d)
|
list_ap.append(d)
|
||||||
|
except chibios_hwdef.ChibiOSHWDefIncludeNotFoundException as e:
|
||||||
|
print(f"{e.includer} includes {e.hwdef} which does not exist")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
list_ap = list(set(list_ap))
|
list_ap = list(set(list_ap))
|
||||||
return list_ap
|
return list_ap
|
||||||
|
Loading…
Reference in New Issue
Block a user