From 75f9c4e4fc68d8ca26579ac0e6b19c473cb8b86d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 11 Jul 2024 10:25:05 +1000 Subject: [PATCH] AP_HAL: chiibos.h: die nicely if HAL_HAVE_PIXRACER_LED is used --- libraries/AP_HAL/board/chibios.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL/board/chibios.h b/libraries/AP_HAL/board/chibios.h index cd0d890810..9e5cd5911f 100644 --- a/libraries/AP_HAL/board/chibios.h +++ b/libraries/AP_HAL/board/chibios.h @@ -4,6 +4,10 @@ #define HAL_BOARD_NAME "ChibiOS" +#ifdef HAL_HAVE_PIXRACER_LED +#error "use AP_NOTIFY_GPIO_LED_RGB_ENABLED in place of HAL_HAVE_PIXRACER_LED (and rename your pins!)" +#endif + #if HAL_MEMORY_TOTAL_KB >= 1000 #define HAL_MEM_CLASS HAL_MEM_CLASS_1000 #elif HAL_MEMORY_TOTAL_KB >= 500