Skip to content

Commit

Permalink
Use my_sdmmc_get_cid instead of sdmmc_nand_cid
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Dec 2, 2023
1 parent 2dba549 commit 2e01f4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion quickmenu/arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

void my_touchInit();
void my_installSystemFIFO(void);
void my_sdmmc_get_cid(int devicenumber, u32 *cid);

u8 my_i2cReadRegister(u8 device, u8 reg);
u8 my_i2cWriteRegister(u8 device, u8 reg, u8 data);
Expand Down Expand Up @@ -348,7 +349,7 @@ int main() {
}

if (*(u32*)(0x2FFFD0C) == 0x454D4D43) {
sdmmc_nand_cid((u32*)0x2FFD7BC); // Get eMMC CID
my_sdmmc_get_cid(true, (u32*)0x2FFD7BC); // Get eMMC CID
*(u32*)(0x2FFFD0C) = 0;
}
swiWaitForVBlank();
Expand Down
3 changes: 2 additions & 1 deletion title/arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

void my_touchInit();
void my_installSystemFIFO(void);
void my_sdmmc_get_cid(int devicenumber, u32 *cid);

u8 my_i2cReadRegister(u8 device, u8 reg);
u8 my_i2cWriteRegister(u8 device, u8 reg, u8 data);
Expand Down Expand Up @@ -353,7 +354,7 @@ int main() {
}

if (*(u32*)(0x2FFFD0C) == 0x454D4D43) {
sdmmc_nand_cid((u32*)0x2FFD7BC); // Get eMMC CID
my_sdmmc_get_cid(true, (u32*)0x2FFD7BC); // Get eMMC CID
*(u32*)(0x2FFFD0C) = 0;
}

Expand Down

0 comments on commit 2e01f4f

Please sign in to comment.