diff options
Diffstat (limited to 'nuttx/examples/ostest/mqueue.c')
-rw-r--r-- | nuttx/examples/ostest/mqueue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/examples/ostest/mqueue.c b/nuttx/examples/ostest/mqueue.c index 8c96d9cf4..e68cfc012 100644 --- a/nuttx/examples/ostest/mqueue.c +++ b/nuttx/examples/ostest/mqueue.c @@ -73,6 +73,8 @@ # define TEST_RECEIVE_NMSGS (10) #endif +#define HALF_SECOND_USEC_USEC 500000L + /************************************************************************** * Private Types **************************************************************************/ @@ -370,7 +372,7 @@ void mqueue_test(void) /* Wait a bit to see if the thread exits on its own */ - usleep(500*1000); + usleep(HALF_SECOND_USEC_USEC); #endif /* Then cancel the thread and see if it did */ |