mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
scripts: make sure configure_all.py detects periph builds correctly
This commit is contained in:
parent
b452701a2b
commit
0221b565a5
@ -68,7 +68,7 @@ def is_ap_periph(board):
|
||||
hwdef = os.path.join('libraries/AP_HAL_ChibiOS/hwdef/%s/hwdef.dat' % board)
|
||||
try:
|
||||
r = open(hwdef, 'r').read()
|
||||
if r.find('periph/hwdef.dat') != -1 or r.find('AP_PERIPH') != -1:
|
||||
if r.find('periph/hwdef.dat') != -1 or r.find('periph/hwdef.inc') != -1 or r.find('AP_PERIPH') != -1:
|
||||
print("%s is AP_Periph" % board)
|
||||
return True
|
||||
except Exception as ex:
|
||||
|
Loading…
Reference in New Issue
Block a user