Skip to content

Commit

Permalink
Merge pull request #410 from gabbla/fix_zephyr_uart_transport
Browse files Browse the repository at this point in the history
transport: fix zephyr uart transport. See #409
  • Loading branch information
JanKomarekNXP authored Mar 4, 2024
2 parents ddb4467 + 8e55ad6 commit 2890823
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpc_c/transports/erpc_uart_zephyr_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ erpc_status_t UartTransport::init(void)

erpc_status_t UartTransport::underlyingReceive(uint8_t *data, uint32_t size)
{
erpc_status_t erpcStatus = kErpcStatus_ReceiveFailed;
erpc_status_t erpcStatus = kErpcStatus_Success;

if (ring_buf_size_get(&uart_receive_buf) < size)
{
Expand All @@ -168,7 +168,6 @@ erpc_status_t UartTransport::underlyingReceive(uint8_t *data, uint32_t size)
{
}
#endif
erpcStatus = kErpcStatus_Success;
}

/* read data from buffer */
Expand Down

0 comments on commit 2890823

Please sign in to comment.