AP_HAL_Boards: stop users specifying HAL_GPIO_LED_ON as the default value

This commit is contained in:
Peter Barker 2024-07-16 15:26:47 +10:00 committed by Andrew Tridgell
parent 2ee760e114
commit 9a1a99fd61
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@
#ifndef HAL_GPIO_LED_ON
#define HAL_GPIO_LED_ON 0
#elif HAL_GPIO_LED_ON == 0
#error "Do not specify HAL_GPIO_LED_ON if you are setting it to the default, 0"
#endif
#ifdef HAL_GPIO_LED_OFF