fusee: Run periodic autocal only on the uSD controller (#137)

This commit is contained in:
Max K authored and SciresM committed 2018-06-10 21:09:48 -07:00
1 parent 5c80016c81
commit d8c9399cff
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -2175,7 +2175,10 @@ static int sdmmc_send_command(struct mmc *mmc, enum sdmmc_command command,
}
}
sdmmc_run_autocal(mmc, true);
// Periodically recalibrate the SD controller
if (mmc->controller == SWITCH_MICROSD) {
sdmmc_run_autocal(mmc, true);
}
// If we have data to send, prepare it.
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);
+4 -1
View File
@@ -2176,7 +2176,10 @@ static int sdmmc_send_command(struct mmc *mmc, enum sdmmc_command command,
}
}
sdmmc_run_autocal(mmc, true);
// Periodically recalibrate the SD controller
if (mmc->controller == SWITCH_MICROSD) {
sdmmc_run_autocal(mmc, true);
}
// If we have data to send, prepare it.
sdmmc_prepare_command_data(mmc, blocks_to_transfer, is_write, auto_terminate, mmc->use_dma, argument);