AP_BoardConfig: on debug builds enable the debug pins by default

this saves a step in debugging
This commit is contained in:
Andrew Tridgell 2023-04-17 13:27:55 +10:00
parent 5121b33c03
commit 14d2318859
1 changed files with 4 additions and 0 deletions

View File

@ -76,7 +76,11 @@
#ifndef HAL_BRD_OPTIONS_DEFAULT
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !APM_BUILD_TYPE(APM_BUILD_Replay)
#ifdef HAL_DEBUG_BUILD
#define HAL_BRD_OPTIONS_DEFAULT BOARD_OPTION_WATCHDOG | BOARD_OPTION_DEBUG_ENABLE
#else
#define HAL_BRD_OPTIONS_DEFAULT BOARD_OPTION_WATCHDOG
#endif
#else
#define HAL_BRD_OPTIONS_DEFAULT 0
#endif