Wait until all buttons released before showing the bootmenu

This commit is contained in:
d0k3 2017-10-28 14:39:32 +02:00
parent 45d620bf72
commit a9eaf45a8e

View File

@ -1789,6 +1789,7 @@ u32 GodMode(int entrypoint) {
// bootmenu handler // bootmenu handler
if (bootmenu) { if (bootmenu) {
bootloader = false; bootloader = false;
while (HID_STATE); // wait until no buttons are pressed
while (!bootloader && !godmode9) { while (!bootloader && !godmode9) {
const char* optionstr[6] = { "Resume bootloader", "Resume GodMode9", "Select payload...", "Select script...", const char* optionstr[6] = { "Resume bootloader", "Resume GodMode9", "Select payload...", "Select script...",
"Poweroff system", "Reboot system" }; "Poweroff system", "Reboot system" };