From 6fdf216e2529224b3a4a3aab285852f40bbef65d Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Mon, 25 May 2015 00:02:05 -0300 Subject: [PATCH] Increase a few ioDelays during cart initialization This helps with carts that return FFFFFFFF as the cart id. --- source/gamecart/protocol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/gamecart/protocol.c b/source/gamecart/protocol.c index 46ed72f..54d84bf 100644 --- a/source/gamecart/protocol.c +++ b/source/gamecart/protocol.c @@ -81,14 +81,14 @@ void Cart_Init(void) ResetCartSlot(); //Seems to reset the cart slot? REG_CTRCARDSECCNT &= 0xFFFFFFFB; - ioDelay(0xF000); + ioDelay(0x30000); SwitchToNTRCARD(); - ioDelay(0xF000); + ioDelay(0x30000); REG_NTRCARDROMCNT = 0; REG_NTRCARDMCNT &= 0xFF; - ioDelay(167550); + ioDelay(0x40000); REG_NTRCARDMCNT |= (NTRCARD_CR1_ENABLE | NTRCARD_CR1_IRQ); REG_NTRCARDROMCNT = NTRCARD_nRESET | NTRCARD_SEC_SEED;