This commit is contained in:
Matthew Kennedy 2021-09-20 12:04:34 -07:00 committed by Andrey
parent c30e40f0ab
commit 9575666887
1 changed files with 2 additions and 2 deletions

View File

@ -750,7 +750,7 @@ bool mmcSequentialRead(MMCDriver *mmcp, uint8_t *buffer) {
for (i = 0; i < MMC_WAIT_DATA; i++) {
spiReceiveSmall(mmcp->config->spip, 1, buffer);
if (buffer[0] == 0xFEU) {
#if STM32H7XX
#ifdef STM32H7XX
/* workaround for silicon errata */
/* see https://github.com/rusefi/rusefi/issues/2395 */
resetSpiDevice(mmcp->config->spip);
@ -865,7 +865,7 @@ bool mmcSequentialWrite(MMCDriver *mmcp, const uint8_t *buffer) {
spiSendSmall(mmcp->config->spip, sizeof(start), start);/* Data prologue. */
#if STM32H7XX
#ifdef STM32H7XX
/* workaround for silicon errata */
/* see https://github.com/rusefi/rusefi/issues/2395 */
resetSpiDevice(mmcp->config->spip);