Wait for ntrboot buttons not to be held

This commit is contained in:
Aurora Wright 2017-08-20 18:23:19 +02:00
parent f619dafff1
commit d358df48a6
2 changed files with 2 additions and 0 deletions

View File

@ -49,3 +49,4 @@
#define L_PAYLOAD_BUTTONS (BUTTON_R1 | BUTTON_A | BUTTON_START | BUTTON_SELECT)
#define MENU_BUTTONS (DPAD_BUTTONS | BUTTON_A | BUTTON_START)
#define PIN_BUTTONS (BUTTON_A | BUTTON_B | BUTTON_X | BUTTON_Y | DPAD_BUTTONS | BUTTON_START | BUTTON_SELECT)
#define NTRBOOT_BUTTONS (BUTTON_START | BUTTON_SELECT | BUTTON_X)

View File

@ -132,6 +132,7 @@ void main(int argc, char **argv, u32 magicWord)
if(bootType == NTR && magicWord == 0xB002)
{
while(HID_PAD & NTRBOOT_BUTTONS);
loadHomebrewFirm(0);
mcuPowerOff();
}