Skip to content

Commit

Permalink
menu: add continue option
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoCWD committed Dec 21, 2024
1 parent 4b8e80d commit f597507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lk2nd/device/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <lk2nd/version.h>

#include "../device.h"

#include "../../../app/aboot/aboot.h"
#define FONT_WIDTH (5+1)
#define FONT_HEIGHT 12
#define MIN_LINE 40
Expand Down Expand Up @@ -118,6 +118,7 @@ static uint16_t wait_key(void)
#define xstr(s) str(s)
#define str(s) #s

static void opt_continue(void) { aboot_normalboot(); }
static void opt_reboot(void) { reboot_device(0); }
static void opt_recoery(void) { reboot_device(RECOVERY_MODE); }
static void opt_bootloader(void) { reboot_device(FASTBOOT_MODE); }
Expand All @@ -130,6 +131,7 @@ static struct {
void (*action)(void);
} menu_options[] = {
{ " Reboot ", GREEN, opt_reboot },
{ " Continue ", WHITE, opt_continue },
{ " Recovery ", ORANGE, opt_recoery },
{ "Bootloader", ORANGE, opt_bootloader },
{ " EDL ", RED, opt_edl },
Expand Down

0 comments on commit f597507

Please sign in to comment.