From d57f4c54a9a2e7d244e080df6224b6554d3741a3 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Thu, 24 May 2018 17:39:36 +0200 Subject: [PATCH] Fix mmc->allow_voltage_switching assignment in sdmmc_init --- fusee/fusee-primary/src/sdmmc.c | 2 +- fusee/fusee-secondary/src/sdmmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fusee/fusee-primary/src/sdmmc.c b/fusee/fusee-primary/src/sdmmc.c index 64034cf45..18f611309 100644 --- a/fusee/fusee-primary/src/sdmmc.c +++ b/fusee/fusee-primary/src/sdmmc.c @@ -3391,7 +3391,7 @@ int sdmmc_init(struct mmc *mmc, enum sdmmc_controller controller, bool allow_vol // Get a reference to the registers for the relevant SDMMC controller. mmc->controller = controller; mmc->regs = sdmmc_get_regs(controller); - mmc->allow_voltage_switching = false; + mmc->allow_voltage_switching = allow_voltage_switching; // Set the defaults for the card, including the default function pointers // for the assumed card type, and the per-controller options. diff --git a/fusee/fusee-secondary/src/sdmmc.c b/fusee/fusee-secondary/src/sdmmc.c index 64034cf45..18f611309 100644 --- a/fusee/fusee-secondary/src/sdmmc.c +++ b/fusee/fusee-secondary/src/sdmmc.c @@ -3391,7 +3391,7 @@ int sdmmc_init(struct mmc *mmc, enum sdmmc_controller controller, bool allow_vol // Get a reference to the registers for the relevant SDMMC controller. mmc->controller = controller; mmc->regs = sdmmc_get_regs(controller); - mmc->allow_voltage_switching = false; + mmc->allow_voltage_switching = allow_voltage_switching; // Set the defaults for the card, including the default function pointers // for the assumed card type, and the per-controller options.