diff --git a/components/libraries/log/src/nrf_log_backend_uart.c b/components/libraries/log/src/nrf_log_backend_uart.c index e374ade..0e4d3c7 100644 --- a/components/libraries/log/src/nrf_log_backend_uart.c +++ b/components/libraries/log/src/nrf_log_backend_uart.c @@ -54,11 +54,11 @@ static void uart_evt_handler(nrf_drv_uart_event_t * p_event, void * p_context) { m_xfer_done = true; } - +uint32_t g_nrf_log_tx_pin = NRF_UART_PSEL_DISCONNECTED; static void uart_init(bool async_mode) { nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG; - config.pseltxd = NRF_LOG_BACKEND_UART_TX_PIN; + config.pseltxd = g_nrf_log_tx_pin; config.pselrxd = NRF_UART_PSEL_DISCONNECTED; config.pselcts = NRF_UART_PSEL_DISCONNECTED; config.pselrts = NRF_UART_PSEL_DISCONNECTED;