NRF52: reloc_vector_table: check the RTS pin settings in code

Move the check from preprocessor to the if condition
pull/10652/head
Naveen Kaje 2019-01-12 06:01:17 -06:00 committed by desmond.chen
parent c048a34e00
commit e8e1ef2a70
1 changed files with 1 additions and 2 deletions

View File

@ -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