From e0d118e3491ac294e8e936f17d701d6abd95bf0f Mon Sep 17 00:00:00 2001 From: Matteo Golin Date: Tue, 24 Feb 2026 14:54:05 -0500 Subject: [PATCH] examples/powerled: Fix board initialization compilation When NSH_ARCHINIT is not enabled, initialization is to be performed by boardctl(BOARDIOC_INIT). However, the boardctl header is not included so this causes compilation to fail. This commit corrects that issue. Signed-off-by: Matteo Golin --- examples/powerled/powerled_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/powerled/powerled_main.c b/examples/powerled/powerled_main.c index c0b3cd29d..4478d2ee7 100644 --- a/examples/powerled/powerled_main.c +++ b/examples/powerled/powerled_main.c @@ -38,6 +38,10 @@ #include #include +#ifndef CONFIG_NSH_ARCHINIT +#include +#endif + #include #include