This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 25ba30986fbe70c22e8ed885600a97d98b4becc6 Author: wangjianyu3 <[email protected]> AuthorDate: Tue Nov 28 14:33:22 2023 +0800 fastboot tool: Status read failed while rebooting into bootloader Signed-off-by: wangjianyu3 <[email protected]> --- system/fastboot/fastboot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index 26766cfee..f1d1a19de 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -511,7 +511,10 @@ static void fastboot_reboot(FAR struct fastboot_ctx_s *context, FAR const char *arg) { #ifdef CONFIG_BOARDCTL_RESET + fastboot_okay(context, ""); boardctl(BOARDIOC_RESET, BOARDIOC_SOFTRESETCAUSE_USER_REBOOT); +#else + fastboot_fail(context, "Operation not supported"); #endif } @@ -519,7 +522,10 @@ static void fastboot_reboot_bootloader(FAR struct fastboot_ctx_s *context, FAR const char *arg) { #ifdef CONFIG_BOARDCTL_RESET + fastboot_okay(context, ""); boardctl(BOARDIOC_RESET, BOARDIOC_SOFTRESETCAUSE_ENTER_BOOTLOADER); +#else + fastboot_fail(context, "Operation not supported"); #endif }
