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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-09-24 17:47:54 +08:00 committed by GUIDINGLI
parent 167c4ae2a4
commit 2acd975435

View File

@ -30,8 +30,9 @@
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <nuttx/tls.h> #include <nuttx/tls.h>
#include <nuttx/signal.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/panic_notifier.h>
#include <nuttx/reboot_notifier.h> #include <nuttx/reboot_notifier.h>
#include <nuttx/syslog/syslog.h> #include <nuttx/syslog/syslog.h>