1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- From c65fe3366205ad8391803e7c5c35332f2b757d5f Mon Sep 17 00:00:00 2001
- From: Hal Emmerich <hal@halemmerich.com>
- Date: Sun, 8 Dec 2019 20:00:12 -0600
- Subject: [PATCH] Bind ctrl + H to hold the developer mode screen
- ---
- firmware/lib/vboot_ui.c | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
- diff --git a/firmware/lib/vboot_ui.c b/firmware/lib/vboot_ui.c
- index 98cd1cd6..c84452b7 100644
- --- a/firmware/lib/vboot_ui.c
- +++ b/firmware/lib/vboot_ui.c
- @@ -167,6 +167,7 @@ VbError_t vb2_developer_ui(struct vb2_context *ctx)
- uint32_t use_usb = 0;
- uint32_t use_legacy = 0;
- uint32_t ctrl_d_pressed = 0;
- + uint32_t hold = 0;
-
- VB2_DEBUG("Entering\n");
-
- @@ -314,6 +315,12 @@ VbError_t vb2_developer_ui(struct vb2_context *ctx)
- ctrl_d_pressed = 1;
- goto fallout;
- break;
- + case 0x08:
- + /* Ctrl+H = hold */
- + VB2_DEBUG(("VbBootDeveloper() - "
- + "hold developer mode screen\n"));
- + hold = 1;
- + break;
- case 0x0c:
- VB2_DEBUG("VbBootDeveloper() - "
- "user pressed Ctrl+L; Try legacy boot\n");
- @@ -360,7 +367,7 @@ VbError_t vb2_developer_ui(struct vb2_context *ctx)
- VbCheckDisplayKey(ctx, key);
- break;
- }
- - } while(vb2_audio_looping());
- + } while(hold || vb2_audio_looping());
-
- fallout:
-
- --
- 2.20.1
|