tests: update uart driver api test case
Depending on test environment, termination character could be '/r' instead of '/n'. Enabling both possibilities. Change-Id: I18b47e9055667e0a4f868416ee8d01226a879712 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
b6cf56e5cc
commit
e895d576db
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ static void uart_fifo_callback(struct device *dev)
|
|||
uart_fifo_read(dev, &recvData, 1);
|
||||
TC_PRINT("%c", recvData);
|
||||
|
||||
if (recvData == '\n') {
|
||||
if ((recvData == '\n') || (recvData == '\r')) {
|
||||
data_received = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ static int test_poll_in(void)
|
|||
|
||||
TC_PRINT("%c", recvChar);
|
||||
|
||||
if (recvChar == '\n') {
|
||||
if ((recvChar == '\n') || (recvChar == '\r')) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue