补充,返回的地方是
if (res == FR_OK) { /* Fill sector window with new data */
if (disk_read(fs->drv, fs->win.d8, sector, 1) != RES_OK) {
sector = 0xFFFFFFFF; /* Invalidate window if data is not reliable */
res = FR_DISK_ERR;
}
fs->winsect = sector;
}
}
return res;
if (res == FR_OK) { /* Fill sector window with new data */
if (disk_read(fs->drv, fs->win.d8, sector, 1) != RES_OK) {
sector = 0xFFFFFFFF; /* Invalidate window if data is not reliable */
res = FR_DISK_ERR;
}
fs->winsect = sector;
}
}
return res;
一周热门 更多>