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

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

commit 82eb73da76d5574a3df937635dc97c56f7e5d2f7
Author: wangjianyu3 <[email protected]>
AuthorDate: Tue Aug 25 13:05:39 2026 +0800

    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 <[email protected]>
---
 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[] =

Reply via email to