From 95a06846bca33fd8778044eeb2ef46e35c038361 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 13 Jan 2021 17:03:57 +0800 Subject: [PATCH] examples/pty_test: Fix the hardcode uart device path should be CONFIG_EXAMPLES_PTYTEST_SERIALDEV, regression in commit: commit 6ddbffd2000fb62c71914c6f57c93f2e7d1f50e8 Author: Xiang Xiao Date: Sun Jan 3 23:50:50 2021 -0800 examples/pty_test: Remove O_NONBLOCK from open to avoid the log storm: ERROR Failed to read from serial: 11 ERROR Failed to read from serial: 11 ERROR Failed to read from serial: 11 ERROR Failed to read from serial: 11 ERROR Failed to read from serial: 11 ... Signed-off-by: Xiang Xiao --- examples/pty_test/pty_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pty_test/pty_test.c b/examples/pty_test/pty_test.c index ffa09eedc..dcd5db301 100644 --- a/examples/pty_test/pty_test.c +++ b/examples/pty_test/pty_test.c @@ -311,7 +311,7 @@ int main(int argc, FAR char *argv[]) /* Open the second serial port to create a new console there */ - termpair.fd_uart = open("/dev/console", O_RDWR); + termpair.fd_uart = open(CONFIG_EXAMPLES_PTYTEST_SERIALDEV, O_RDWR); if (termpair.fd_uart < 0) { #ifdef CONFIG_EXAMPLES_PTYTEST_WAIT_CONNECTED