Skip to content

Commit f4df4c9

Browse files
authored
allow running apps if key is held before logo display (#24)
* allow ELF execution by holding button before logo if users want some insane low timeout, this will do! * get rid of senseless comment
1 parent 39dac40 commit f4df4c9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,7 @@ int main(int argc, char *argv[])
271271
DPRINTF("OSD Configuration not initialized. Defaults loaded.\n");
272272
scr_setfontcolor(0xffffff);
273273
}
274-
275-
// Applies OSD configuration (saves settings into the EE kernel)
276-
DPRINTF("Saving OSD configuration to EE Kernel\n");
274+
DPRINTF("Saving OSD configuration\n");
277275
OSDConfigApply();
278276

279277
/* Try to enable the remote control, if it is enabled.
@@ -488,7 +486,8 @@ int main(int argc, char *argv[])
488486
tstart = Timer();
489487
while (Timer() <= (tstart + GLOBCFG.DELAY)) {
490488
button = pad_button; // reset the value so we can iterate (bit-shift) again
491-
PAD = ReadCombinedPadStatus();
489+
PAD = ReadCombinedPadStatus_raw();
490+
DPRINTF("PAD %x\n", PAD);
492491
for (x = 0; x < num_buttons; x++) { // check all pad buttons
493492
if (PAD & button) {
494493
DPRINTF("PAD detected\n");
@@ -537,7 +536,7 @@ int main(int argc, char *argv[])
537536
scr_setfontcolor(0xffffff);
538537
while (1) {
539538
sleep(1);
540-
PAD = ReadCombinedPadStatus();
539+
PAD = ReadCombinedPadStatus_raw();
541540
if ((PAD & PAD_R1) && (PAD & PAD_START)) // if ONLY R1+START are pressed...
542541
EMERGENCY();
543542
}

0 commit comments

Comments
 (0)