mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-28 22:02:39 +02:00
fusee: Run periodic autocal only on the uSD controller (#137)
This commit is contained in:
parent
5c80016c81
commit
d8c9399cff
@ -2175,7 +2175,10 @@ static int sdmmc_send_command(struct mmc *mmc, enum sdmmc_command command,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Periodically recalibrate the SD controller
|
||||||
|
if (mmc->controller == SWITCH_MICROSD) {
|
||||||
sdmmc_run_autocal(mmc, true);
|
sdmmc_run_autocal(mmc, true);
|
||||||
|
}
|
||||||
|
|
||||||
// If we have data to send, prepare it.
|
// If we have data to send, prepare it.
|
||||||
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);
|
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);
|
||||||
|
@ -2176,7 +2176,10 @@ static int sdmmc_send_command(struct mmc *mmc, enum sdmmc_command command,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Periodically recalibrate the SD controller
|
||||||
|
if (mmc->controller == SWITCH_MICROSD) {
|
||||||
sdmmc_run_autocal(mmc, true);
|
sdmmc_run_autocal(mmc, true);
|
||||||
|
}
|
||||||
|
|
||||||
// If we have data to send, prepare it.
|
// If we have data to send, prepare it.
|
||||||
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);
|
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);
|
||||||
|
Loading…
Reference in New Issue
Block a user