mirror of https://github.com/ARMmbed/mbed-os.git
NRF5x: Fix baremetal linker error
DEBUG_NRF_USER gets defined for build profiles (develop, debug) which do not define NDEBUG (see nrf_assert.h). Therefore the definition of the function should also be visible if DEBUG_NRF_USER is defined.pull/12151/head
parent
789a193696
commit
6afca2460e
|
@ -40,7 +40,8 @@
|
|||
#include "app_error.h"
|
||||
#include "nordic_common.h"
|
||||
|
||||
#if defined(DEBUG_NRF)
|
||||
#if !MBED_CONF_BLE_PRESENT
|
||||
#if defined(DEBUG_NRF) || defined(DEBUG_NRF_USER)
|
||||
void assert_nrf_callback(uint16_t line_num, const uint8_t * file_name)
|
||||
{
|
||||
assert_info_t assert_info =
|
||||
|
@ -52,4 +53,5 @@ void assert_nrf_callback(uint16_t line_num, const uint8_t * file_name)
|
|||
|
||||
UNUSED_VARIABLE(assert_info);
|
||||
}
|
||||
#endif /* DEBUG_NRF */
|
||||
#endif /* defined(DEBUG_NRF) || defined(DEBUG_NRF_USER) */
|
||||
#endif // !MBED_CONF_BLE_PRESENT
|
||||
|
|
Loading…
Reference in New Issue