aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-10 11:21:07 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-10 11:21:07 +0000
commit152cacac1f47599a0a538c94900ba18d30f0ccc9 (patch)
tree32a24832574c96cbce699b867db0a2f994097985 /os
parenta9ec45714f14609ff64e3a8bbd9c63d274a67604 (diff)
downloadChibiOS-152cacac1f47599a0a538c94900ba18d30f0ccc9.tar.gz
ChibiOS-152cacac1f47599a0a538c94900ba18d30f0ccc9.tar.bz2
ChibiOS-152cacac1f47599a0a538c94900ba18d30f0ccc9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5403 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/src/sdc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c
index 3b034cf3d..f95331d44 100644
--- a/os/hal/src/sdc.c
+++ b/os/hal/src/sdc.c
@@ -562,6 +562,7 @@ bool_t sdcErase(SDCDriver *sdcp, uint32_t startblk, uint32_t endblk) {
/* Wait for it to return to transfer state to indicate it has finished erasing */
_sdc_wait_for_transfer_state(sdcp);
+ sdcp->state = BLK_READY;
return CH_SUCCESS;
failed: