Skip to content
Commit 93f49c20 authored by Jon Medhurst's avatar Jon Medhurst Committed by Inaky Perez-Gonzalez
Browse files

samples: uart: Check return value from uart_fifo_fill



If the UART FIFO is already full at the start of the irq tests (e.g.
because the data from the previous polled mode test is still being
transmitted), then uart_fifo_fill() may not not be able to add the
requested character to the FIFO and so return zero.

Fix this issue by repeating retrying uart_fifo_fill() until success.

Change-Id: I055ca1d4c91d81488b89f2a9b00031b9f2b8b222
Signed-off-by: default avatarJon Medhurst <tixy@linaro.org>
parent 02dc270d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment