Skip to content

Commit 8e55ad6

Browse files
committed
transport: fix zephyr uart transport. See #409
1 parent ddb4467 commit 8e55ad6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

erpc_c/transports/erpc_uart_zephyr_transport.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ erpc_status_t UartTransport::init(void)
153153

154154
erpc_status_t UartTransport::underlyingReceive(uint8_t *data, uint32_t size)
155155
{
156-
erpc_status_t erpcStatus = kErpcStatus_ReceiveFailed;
156+
erpc_status_t erpcStatus = kErpcStatus_Success;
157157

158158
if (ring_buf_size_get(&uart_receive_buf) < size)
159159
{
@@ -168,7 +168,6 @@ erpc_status_t UartTransport::underlyingReceive(uint8_t *data, uint32_t size)
168168
{
169169
}
170170
#endif
171-
erpcStatus = kErpcStatus_Success;
172171
}
173172

174173
/* read data from buffer */

0 commit comments

Comments
 (0)