diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index 4d33d62c2a..a14e3f9b8e 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -461,11 +461,6 @@ def setup_canmgr_build(cfg): 'CANARD_ALLOCATE_SEM=1' ] - if cfg.env.HAL_CANFD_SUPPORTED: - env.DEFINES += ['UAVCAN_SUPPORT_CANFD=1'] - else: - env.DEFINES += ['UAVCAN_SUPPORT_CANFD=0'] - cfg.get_board().with_can = True def setup_canperiph_build(cfg): @@ -475,11 +470,6 @@ def setup_canperiph_build(cfg): 'CANARD_ENABLE_DEADLINE=1', ] - if cfg.env.HAL_CANFD_SUPPORTED: - env.DEFINES += ['UAVCAN_SUPPORT_CANFD=1'] - else: - env.DEFINES += ['UAVCAN_SUPPORT_CANFD=0'] - cfg.get_board().with_can = True def load_env_vars(env):