Skip to content

Commit da90499

Browse files
committed
minor fix
1 parent 0a8236b commit da90499

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

source/menu_boot.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ int menu_boot() {
6363
u32 key = hidKeysHeld();
6464
if (key & BIT(config->recovery) || config->timeout < 0) { // disable autoboot
6565
timer = false;
66-
} else if (config->timeout == 0) { // autoboot
67-
int index = key_override(boot_index);
68-
return boot(index);
66+
} else if (config->timeout == 0 || key_override(boot_index) != boot_index) { // autoboot
67+
return boot(key_override(boot_index));
6968
}
7069

7170
#ifndef ARM9

0 commit comments

Comments
 (0)