From d02ec04ff34d6f5a8ef31bd8f1bee4d544da8343 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 26 Sep 2017 10:32:47 -0600 Subject: [PATCH] Fix some conditional compilation in previous commit. --- examples/flowc/flowc_receiver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/flowc/flowc_receiver.c b/examples/flowc/flowc_receiver.c index a9b183f84..f2e4a3d42 100644 --- a/examples/flowc/flowc_receiver.c +++ b/examples/flowc/flowc_receiver.c @@ -192,7 +192,8 @@ int flowc_receiver(int argc, char **argv) return 1; } -#ifdef CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY +#if defined(CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY) && \ + CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY > 0 /* Delay to force flow control */ usleep(1000 * CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY);