JianyuWang0623 opened a new pull request, #3966: URL: https://github.com/apache/nuttx-apps/pull/3966
## Summary Adapt `resetflag[]` in `init_boot_reason()` to the `BOARDIOC_SOFTRESETCAUSE_POWEROFF` and `_MAX` subreasons added by apache/nuttx#21386, mapping `POWEROFF` to `"shutdown"` and `MAX` to `"unknown"`. ## Impact Builds with `CONFIG_SYSTEM_NXINIT` and `CONFIG_BOARDCTL_RESET_CAUSE` now report `sys.boot.reason=shutdown` for a power-off soft reset and `unknown` for an out-of-range subreason; all other builds are unaffected. ## Testing - Build Host: Ubuntu 22.04.5 LTS, Linux 6.8.0-138-generic x86_64, host `cc` 13.4.0 (`CROSSDEV` empty); -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
