From e8e1ef2a704002775dfbb923963f7d36dc912844 Mon Sep 17 00:00:00 2001 From: Naveen Kaje Date: Sat, 12 Jan 2019 06:01:17 -0600 Subject: [PATCH] NRF52: reloc_vector_table: check the RTS pin settings in code Move the check from preprocessor to the if condition --- .../TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c index 619c8145b5..23f87ea7dd 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/reloc_vector_table.c @@ -113,7 +113,7 @@ void nrf_reloc_vector_table(void) #endif } -#if (STDIO_UART_RTS != NC) + void mbed_sdk_init(void) { if (STDIO_UART_RTS != NC) { @@ -123,4 +123,3 @@ void mbed_sdk_init(void) gpio_write(&rts, 0); } } -#endif