summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lib/usbd_storage_msd.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/lib/usbd_storage_msd.c')
-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 a924a868d2..c22abbd11d 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);
}