Fixed compilion error when FF_MAX_SS != FF_MIN_SS

This commit is contained in:
Ciro Cattuto 2023-08-21 22:47:09 +02:00
parent 506dca71b0
commit a5578cf067
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t *
// MicroPython let's update the cached FatFs sector if it's the one
// we just wrote.
#if FF_MAX_SS != FF_MIN_SS
if (vfs->ssize == MSC_FLASH_BLOCK_SIZE) {
if (vfs->fatfs.ssize == MSC_FLASH_BLOCK_SIZE) {
#else
// The compiler can optimize this away.
if (FF_MAX_SS == FILESYSTEM_BLOCK_SIZE) {