diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Proximity/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Proximity/hwdef.dat index 723712cf4e..1de33b5cec 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Proximity/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Proximity/hwdef.dat @@ -8,7 +8,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE # support all proximity types define HAL_PROXIMITY_ENABLED 1 -define HAL_PERIPH_ENABLE_PRX define AP_PERIPH_PRX_PORT_DEFAULT 2 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 1f92219bbb..9c09113a6a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -3258,6 +3258,10 @@ INCLUDE common.ld #define NOTIFY_LED_OVERRIDE_DEFAULT 1 // rgb_source_t::mavlink #endif +#ifndef HAL_PROXIMITY_ENABLED +#define HAL_PROXIMITY_ENABLED 0 +#endif + // end AP_Periph defaults ''')