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 5, 2025
1 parent c3e8e04 commit 930f0fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lk2nd/device/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "../device.h"

// Defined in app/aboot/aboot.c
extern void cmd_continue(const char *arg, void *data, unsigned sz);

#define FONT_WIDTH (5+1)
#define FONT_HEIGHT 12
#define MIN_LINE 40
Expand Down Expand Up @@ -118,6 +121,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 +134,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 930f0fb

Please sign in to comment.