Skip to content

Commit bf4d873

Browse files
JianyuWang0623xiaoxiang781216
authored andcommitted
system/fastboot: Fix command comparation
e.g. The command is "reboot-bootloader", but will match and break when compared with "reboot" Signed-off-by: wangjianyu3 <[email protected]>
1 parent 2bfb976 commit bf4d873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/fastboot/fastboot.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ static const struct fastboot_cmd_s g_fast_cmd[] =
146146
{ "download:", fastboot_download },
147147
{ "erase:", fastboot_erase },
148148
{ "flash:", fastboot_flash },
149-
{ "reboot", fastboot_reboot },
150-
{ "reboot-bootloader", fastboot_reboot_bootloader}
149+
{ "reboot-bootloader", fastboot_reboot_bootloader},
150+
{ "reboot", fastboot_reboot }
151151
};
152152

153153
/****************************************************************************

0 commit comments

Comments
 (0)