This is an automated email from the ASF dual-hosted git repository.

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2acd975435 assert: Skip to include arch/board/board.h if 
CONFIG_ARCH_LEDS=n
2acd975435 is described below

commit 2acd975435402e4fc50b4d00fdc9eb3319e00643
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Sep 24 17:47:54 2023 +0800

    assert: Skip to include arch/board/board.h if CONFIG_ARCH_LEDS=n
    
    follow up the change: https://github.com/apache/nuttx/pull/10553
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 sched/misc/assert.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sched/misc/assert.c b/sched/misc/assert.c
index 675527aa61..b3da27d227 100644
--- a/sched/misc/assert.c
+++ b/sched/misc/assert.c
@@ -30,8 +30,9 @@
 #include <nuttx/irq.h>
 #include <nuttx/tls.h>
 #include <nuttx/signal.h>
-#include <arch/board/board.h>
-
+#ifdef CONFIG_ARCH_LEDS
+#  include <arch/board/board.h>
+#endif
 #include <nuttx/panic_notifier.h>
 #include <nuttx/reboot_notifier.h>
 #include <nuttx/syslog/syslog.h>

Reply via email to