diff options
Diffstat (limited to 'os/hal/src/hal_mmc_spi.c')
-rw-r--r-- | os/hal/src/hal_mmc_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/src/hal_mmc_spi.c b/os/hal/src/hal_mmc_spi.c index 19c794501..2e6ef7658 100644 --- a/os/hal/src/hal_mmc_spi.c +++ b/os/hal/src/hal_mmc_spi.c @@ -430,7 +430,8 @@ void mmcStop(MMCDriver *mmcp) { "invalid state");
spiStop(mmcp->config->spip);
- mmcp->state = BLK_STOP;
+ mmcp->config = NULL;
+ mmcp->state = BLK_STOP;
}
/**
|