Skip to content

Commit

Permalink
system/fastboot: Fix command comparation
Browse files Browse the repository at this point in the history
e.g. The command is "reboot-bootloader", but will match and break when
     compared  with "reboot"

Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 authored and xiaoxiang781216 committed Sep 12, 2023
1 parent 2bfb976 commit bf4d873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/fastboot/fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ static const struct fastboot_cmd_s g_fast_cmd[] =
{ "download:", fastboot_download },
{ "erase:", fastboot_erase },
{ "flash:", fastboot_flash },
{ "reboot", fastboot_reboot },
{ "reboot-bootloader", fastboot_reboot_bootloader}
{ "reboot-bootloader", fastboot_reboot_bootloader},
{ "reboot", fastboot_reboot }
};

/****************************************************************************
Expand Down

0 comments on commit bf4d873

Please sign in to comment.