ret_code_t nrf_drv_uart_tx(uint8_t const * const p_data, uint8_t length) // deklaracja naszej oryginalnej funkcji
uint8_t * tx_data = (uint8_t *)("\n\rLOOPBACK_TEST\n\r"); //to jest to co wstępnie sobie defuniujemy
// a tu definicja funkcji która to mieli i wysyła
uint32_t app_uart_put(uint8_t byte)
{
uint32_t err_code;
tx_tmp = byte;
err_code = nrf_drv_uart_tx(&tx_tmp, 1);
if (err_code == NRF_ERROR_BUSY)
{
err_code = app_fifo_put(&m_tx_fifo, byte);
}
return err_code;
}
//i chodzi o to że muszę ją pominąć :)