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

This commit is contained in:
Max K 2018-06-11 06:09:48 +02:00 committed by SciresM
parent 5c80016c81
commit d8c9399cff
2 changed files with 8 additions and 2 deletions

View file

@ -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);

View file

@ -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);