From bf4d8739853a5048732e4fc9d85abe4fcfdf537f Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Tue, 5 Sep 2023 22:14:35 +0800 Subject: [PATCH] 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 --- system/fastboot/fastboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index f00831ee9..26766cfee 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -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 } }; /****************************************************************************