From a00fa3f3f5526ab57e2a9a3a942cd6012f76e344 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Wed, 6 Jul 2022 18:09:12 -0600 Subject: [PATCH] Fix looping on eMMC CID get --- arm9/source/nandio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arm9/source/nandio.c b/arm9/source/nandio.c index b9f61c0..4c00af4 100644 --- a/arm9/source/nandio.c +++ b/arm9/source/nandio.c @@ -58,8 +58,10 @@ bool nandio_startup() { fclose(cidFile); } else { // Get eMMC CID - *(u32*)(0x2FFFD0C) = 0x454D4D43; - while (*(u32*)(0x2FFFD0C) != 0); + *(u32*)(0xCFFFD0C) = 0x454D4D43; + while (*(u32*)(0xCFFFD0C) != 0) { + swiDelay(100); + } } }