From fb5cf55dd64dd20a991f8e98462d83e64d038ba2 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 29 Dec 2021 17:12:47 +0100 Subject: [PATCH] Pre-select the autoboot option --- source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index 0c5d4e7..3313852 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -270,7 +270,7 @@ int32_t handleMenuScreen(int32_t autobootOptionInput) { DrawUtils::initBuffers(screenBuffer, tvBufferSize, screenBuffer + tvBufferSize, drcBufferSize); DrawUtils::initFont(); - uint32_t selected = 0; + uint32_t selected = autobootOptionInput > 0 ? autobootOptionInput : 0; int autoboot = autobootOptionInput; bool redraw = true; while (true) {