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