From 82eb73da76d5574a3df937635dc97c56f7e5d2f7 Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Tue, 25 Aug 2026 13:05:39 +0800 Subject: [PATCH] system/nxinit: fix unkown -> unknown typo in resetcause[] codespell flagged this in PR #3751 CI: system/nxinit/init.c:119: unkown ==> unknown system/nxinit/init.c:130: unkown ==> unknown Both entries were introduced by the resetcause-for-triggers commit and are unrelated to the earlier nxstyle regression already discussed on the PR. Assisted-by: GitHubCopilot:claude-sonnet-5 Signed-off-by: wangjianyu3 --- system/nxinit/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/nxinit/init.c b/system/nxinit/init.c index b10253d13..de6964b92 100644 --- a/system/nxinit/init.c +++ b/system/nxinit/init.c @@ -116,7 +116,7 @@ static int init_boot_reason(FAR struct action_manager_s *am) { static FAR const char *const resetcause[] = { - [BOARDIOC_RESETCAUSE_NONE] = "unkown", + [BOARDIOC_RESETCAUSE_NONE] = "unknown", [BOARDIOC_RESETCAUSE_SYS_CHIPPOR] = "cold", [BOARDIOC_RESETCAUSE_SYS_RWDT] = "watchdog", [BOARDIOC_RESETCAUSE_SYS_BOR] = "undervoltage", @@ -127,7 +127,7 @@ static int init_boot_reason(FAR struct action_manager_s *am) [BOARDIOC_RESETCAUSE_CPU_RWDT] = "watchdog", [BOARDIOC_RESETCAUSE_PIN] = "powerkey", [BOARDIOC_RESETCAUSE_LOWPOWER] = "lowpower", - [BOARDIOC_RESETCAUSE_UNKOWN] = "unkown", + [BOARDIOC_RESETCAUSE_UNKOWN] = "unknown", }; static FAR const char * const resetflag[] =