File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1919#include "../device.h"
2020
2121// Defined in app/aboot/aboot.c
22+ extern unsigned boot_into_recovery ;
2223extern void cmd_continue (const char * arg , void * data , unsigned sz );
2324
2425#define FONT_WIDTH (5+1)
@@ -123,7 +124,10 @@ static uint16_t wait_key(void)
123124
124125static void opt_continue (void ) { cmd_continue (NULL , NULL , 0 ); }
125126static void opt_reboot (void ) { reboot_device (0 ); }
126- static void opt_recovery (void ) { reboot_device (RECOVERY_MODE ); }
127+ static void opt_recovery (void ) {
128+ boot_into_recovery = 1 ;
129+ cmd_continue (NULL , NULL , 0 );
130+ }
127131static void opt_bootloader (void ) { reboot_device (FASTBOOT_MODE ); }
128132static void opt_edl (void ) { reboot_device (EMERGENCY_DLOAD ); }
129133static void opt_shutdown (void ) { shutdown_device (); }
You can’t perform that action at this time.
0 commit comments