diff options
author | Damien <damien.p.george@gmail.com> | 2013-12-20 11:45:06 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-12-20 11:45:06 +0000 |
commit | b73085d288ddb29ce23eb297ca2a3742d8aeada8 (patch) | |
tree | a6287e30537835eeb1c8218e97bee804dd47b120 /stm/lib | |
parent | a3dcd9e80ce8bf7abae3daa8da82f1b085499989 (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.c | 1 |
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);
}
|