From b73085d288ddb29ce23eb297ca2a3742d8aeada8 Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 20 Dec 2013 11:45:06 +0000 Subject: stm: add pyb.sd_test; flash cache flushed only via MSD. --- stm/lib/usbd_storage_msd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stm/lib') 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); } -- cgit v1.2.3