diff options
author | Shelley Chen <shchen@chromium.org> | 2017-09-14 14:12:21 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-15 16:59:22 -0700 |
commit | 2ca654f03ab3039d21e628388285e5e9670c601f (patch) | |
tree | e0e48a7dba6221c4b9565226e32501d6664d4652 | |
parent | 1a8b1c008e9cbb08282a17318a82d1df88807022 (diff) | |
download | vboot-2ca654f03ab3039d21e628388285e5e9670c601f.tar.gz |
detachables: fix setting selected_idx of DEV_WARNING menu
Selecting cancel from DEV_MENU should not set the selected_idx
to loc. It should be set to power off.
BUG=b:35585623
BRANCH=None
TEST=go to DEV_MENU, hit cancel and make sure that power off is
selected item
Change-Id: I8cae397c7174b5bd52a3a27736cd3d5a57412e63
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/667933
Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r-- | firmware/lib/vboot_ui_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_ui_menu.c b/firmware/lib/vboot_ui_menu.c index 746bfe13..6f43f151 100644 --- a/firmware/lib/vboot_ui_menu.c +++ b/firmware/lib/vboot_ui_menu.c @@ -479,7 +479,7 @@ VbError_t vb2_update_menu(struct vb2_context *ctx) * 2. Default to power off option. */ vb2_set_menu_items(VB_MENU_DEV_WARNING, - loc); + VB_WARN_POWER_OFF); break; case VB_DEV_POWER_OFF: /* Power off */ |