From 8eb8de0e94b804fbe9855f555e52f8a371860c5a Mon Sep 17 00:00:00 2001 From: "Kate J. Temkin" Date: Sat, 5 May 2018 03:29:01 -0600 Subject: [PATCH] fusee: fix an obvious sdmmc error (oops) --- fusee/fusee-primary/src/sdmmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fusee/fusee-primary/src/sdmmc.c b/fusee/fusee-primary/src/sdmmc.c index 7734c58f1..8538bf996 100644 --- a/fusee/fusee-primary/src/sdmmc.c +++ b/fusee/fusee-primary/src/sdmmc.c @@ -2139,7 +2139,7 @@ static int sdmmc_initialize_defaults(struct mmc *mmc) // Set up function pointers for each of our per-instance functions. mmc->set_up_clock_and_io = sdmmc4_set_up_clock_and_io; mmc->enable_supplies = sdmmc4_enable_supplies; - mmc->card_present = sdmmc_external_card_present; + mmc->card_present = sdmmc_builtin_card_present; // The EMMC controller always uses an EMMC card. sdmmc_apply_card_type(mmc, MMC_CARD_EMMC); @@ -2158,6 +2158,7 @@ static int sdmmc_initialize_defaults(struct mmc *mmc) // Negotiation has a chance to change this, later. mmc->set_up_clock_and_io = sdmmc1_set_up_clock_and_io; mmc->enable_supplies = sdmmc1_enable_supplies; + mmc->card_present = sdmmc_external_card_present; sdmmc_apply_card_type(mmc, MMC_CARD_SD); // Start off assuming byte addressing; we'll detect and correct this