Skip to content

Commit c07fff5

Browse files
authored
Merge pull request #8304 from ccattuto/main
Fixed compilation error when FF_MAX_SS != FF_MIN_SS
2 parents 841ce09 + a5578cf commit c07fff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/usb/usb_msc_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t *
195195
// MicroPython let's update the cached FatFs sector if it's the one
196196
// we just wrote.
197197
#if FF_MAX_SS != FF_MIN_SS
198-
if (vfs->ssize == MSC_FLASH_BLOCK_SIZE) {
198+
if (vfs->fatfs.ssize == MSC_FLASH_BLOCK_SIZE) {
199199
#else
200200
// The compiler can optimize this away.
201201
if (FF_MAX_SS == FILESYSTEM_BLOCK_SIZE) {

0 commit comments

Comments
 (0)