mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: enable CANARD_MULTI_IFACE on AP_Periph if more than one interface
This commit is contained in:
parent
5c8a29b47e
commit
3623d20479
@ -578,6 +578,8 @@ def configure(cfg):
|
|||||||
load_env_vars(cfg.env)
|
load_env_vars(cfg.env)
|
||||||
if env.HAL_NUM_CAN_IFACES and not env.AP_PERIPH:
|
if env.HAL_NUM_CAN_IFACES and not env.AP_PERIPH:
|
||||||
setup_canmgr_build(cfg)
|
setup_canmgr_build(cfg)
|
||||||
|
if env.HAL_NUM_CAN_IFACES and env.AP_PERIPH and int(env.HAL_NUM_CAN_IFACES)>1 and not env.BOOTLOADER:
|
||||||
|
env.DEFINES += [ 'CANARD_MULTI_IFACE=1' ]
|
||||||
setup_optimization(cfg.env)
|
setup_optimization(cfg.env)
|
||||||
|
|
||||||
def generate_hwdef_h(env):
|
def generate_hwdef_h(env):
|
||||||
|
Loading…
Reference in New Issue
Block a user