You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/09/12 08:26:14 UTC

[nuttx-apps] branch master updated: system/fastboot: Fix command comparation

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


The following commit(s) were added to refs/heads/master by this push:
     new bf4d87398 system/fastboot: Fix command comparation
bf4d87398 is described below

commit bf4d8739853a5048732e4fc9d85abe4fcfdf537f
Author: wangjianyu3 <wa...@xiaomi.com>
AuthorDate: Tue Sep 5 22:14:35 2023 +0800

    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 <wa...@xiaomi.com>
---
 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           }
 };
 
 /****************************************************************************