summaryrefslogtreecommitdiff
path: root/stm/lib
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-12-20 11:45:06 +0000
committerDamien <damien.p.george@gmail.com>2013-12-20 11:45:06 +0000
commitb73085d288ddb29ce23eb297ca2a3742d8aeada8 (patch)
treea6287e30537835eeb1c8218e97bee804dd47b120 /stm/lib
parenta3dcd9e80ce8bf7abae3daa8da82f1b085499989 (diff)
stm: add pyb.sd_test; flash cache flushed only via MSD.
Diffstat (limited to 'stm/lib')
-rw-r--r--stm/lib/usbd_storage_msd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/lib/usbd_storage_msd.c b/stm/lib/usbd_storage_msd.c
index a924a868d..c22abbd11 100644
--- a/stm/lib/usbd_storage_msd.c
+++ b/stm/lib/usbd_storage_msd.c
@@ -309,6 +309,7 @@ int8_t STORAGE_Write (uint8_t lun,
#endif
*/
disk_write(0, buf, blk_addr, blk_len);
+ storage_flush(); // XXX hack for now so that the cache is always flushed
return (0);
}