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 Jan 4, 2025
1 parent 536e3e8 commit d433519
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lk2nd/device/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <lk2nd/util/minmax.h>
#include <lk2nd/version.h>

#include "../../../app/aboot/aboot.h"
#include "../device.h"

#define FONT_WIDTH (5+1)
Expand Down Expand Up @@ -118,6 +119,7 @@ static uint16_t wait_key(void)
#define xstr(s) str(s)
#define str(s) #s

static void opt_continue(void) { cmd_continue(NULL, NULL, 0); }
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 +132,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 d433519

Please sign in to comment.