From b888f5f5e654896cefb1dc898a3b8e41e5f2a7cb Mon Sep 17 00:00:00 2001 From: Matias Nitsche Date: Mon, 15 Jun 2020 12:26:21 -0300 Subject: [PATCH] pty: pause() instead of sleep for long time --- 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 a4d90ef63..262e576bb 100644 --- a/examples/pty_test/pty_test.c +++ b/examples/pty_test/pty_test.c @@ -394,7 +394,7 @@ int main(int argc, FAR char *argv[]) { /* Nothing to do, then sleep to avoid eating all cpu time */ - usleep(10000); + pause(); } return EXIT_SUCCESS;