mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 13:19:03 +00:00
fastboot tool: Status read failed while rebooting into bootloader
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
0b3e5f2339
commit
25ba30986f
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue