diff options
author | Shelley Chen <shchen@chromium.org> | 2017-01-27 14:47:14 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-02 09:33:56 -0800 |
commit | ea97468d8acd34000ff5a8e3094b56c7f5ffca6a (patch) | |
tree | 87c852da6a868b0eae0590d33363234de2e9e02e | |
parent | b6ce9d095e5a353b5cd6fbe2f21a2e525a1b0745 (diff) | |
download | vboot-ea97468d8acd34000ff5a8e3094b56c7f5ffca6a.tar.gz |
poppy: replacing dev warn & rec screens with base
Using new base screen only and leaving center
blank for displaying the detachable menu items.
BUG=b:35585623
BRANCH=None
TEST=reboot and make sure icons don't show up
in FW screens.
Change-Id: I705dac43441f386ebceb58533fa0e336541fcd3c
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/442692
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | firmware/lib/vboot_ui_menu.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/lib/vboot_ui_menu.c b/firmware/lib/vboot_ui_menu.c index 1adb364d..a32ddf25 100644 --- a/firmware/lib/vboot_ui_menu.c +++ b/firmware/lib/vboot_ui_menu.c @@ -341,7 +341,6 @@ VbError_t vb2_print_current_menu() // TODO: need to check for error code. vb2_get_current_menu_size(current_menu, &m, &size); - VB2_DEBUG("vb2_print_current_menu:\n"); // TODO: do clear screen here. /* Create menu string */ @@ -649,7 +648,7 @@ VbError_t vb2_developer_menu(struct vb2_context *ctx, VbCommonParams *cparams) /* Show the dev mode warning screen */ //TODO: change this to blank screen? - VbDisplayScreen(ctx, cparams, VB_SCREEN_DEVELOPER_WARNING, 0); + VbDisplayScreen(ctx, cparams, VB_SCREEN_BASE, 0); vb2_print_current_menu(); /* Get audio/delay context */ @@ -704,7 +703,7 @@ VbError_t vb2_developer_menu(struct vb2_context *ctx, VbCommonParams *cparams) */ VbDisplayScreen(ctx, cparams, VB_SCREEN_BLANK, 0); VbDisplayScreen(ctx, cparams, - VB_SCREEN_DEVELOPER_WARNING, 0); + VB_SCREEN_BASE, 0); vb2_print_current_menu(); /* Probably shutting down */ @@ -768,7 +767,7 @@ VbError_t vb2_developer_menu(struct vb2_context *ctx, VbCommonParams *cparams) */ VbDisplayScreen(ctx, cparams, - VB_SCREEN_DEVELOPER_WARNING, + VB_SCREEN_BASE, 0); } } @@ -925,12 +924,13 @@ VbError_t vb2_recovery_menu(struct vb2_context *ctx, VbCommonParams *cparams) if (VBERROR_SUCCESS == retval) break; /* Found a recovery kernel */ - VbDisplayScreen(ctx, cparams, VBERROR_NO_DISK_FOUND == retval ? - VB_SCREEN_RECOVERY_INSERT : - VB_SCREEN_RECOVERY_NO_GOOD, - 0); if (current_menu != VB_MENU_RECOVERY || current_menu_idx != VB_RECOVERY_DBG_INFO) { + VbDisplayScreen(ctx, cparams, + VBERROR_NO_DISK_FOUND == retval ? + VB_SCREEN_BASE : + VB_SCREEN_RECOVERY_NO_GOOD, + 0); vb2_print_current_menu(); } @@ -975,7 +975,7 @@ VbError_t vb2_recovery_menu(struct vb2_context *ctx, VbCommonParams *cparams) */ VbDisplayScreen(ctx, cparams, VB_SCREEN_BLANK, 0); VbDisplayScreen(ctx, cparams, VBERROR_NO_DISK_FOUND == retval ? - VB_SCREEN_RECOVERY_INSERT : + VB_SCREEN_BASE : VB_SCREEN_RECOVERY_NO_GOOD, 0); vb2_print_current_menu(); |