Merge pull request #186 from nanoframework/josesimoes-patch-1
Add call to cache flush on disk write
This commit is contained in:
commit
4dfaea2dec
|
@ -206,6 +206,9 @@ DRESULT disk_write (
|
|||
UINT count /* Number of sectors to write (1..255) */
|
||||
)
|
||||
{
|
||||
// invalidate cache on buffer
|
||||
cacheBufferFlush(buff, count * MMCSD_BLOCK_SIZE);
|
||||
|
||||
switch (pdrv) {
|
||||
#if HAL_USE_MMC_SPI
|
||||
case MMC:
|
||||
|
|
Loading…
Reference in New Issue