请教下, filex + st hal host lib 库读写u盘,有些u盘获取 _fx_media_boot_info_extract 信息错误 ?
/* Treat as exFAT volume. */
/* Extract the number of bytes per sector. */
media_ptr -> fx_media_exfat_bytes_per_sector_shift = boot_sector[FX_EF_BYTE_PER_SECTOR_SHIFT];
/* exFAT requires minimal value 9 (512 bytes) and maximum value 12(4096 bytes) for bytes_per_sector_shift */
if((media_ptr -> fx_media_exfat_bytes_per_sector_shift < 9) || (media_ptr -> fx_media_exfat_bytes_per_sector_shift > 12))
{
return(FX_MEDIA_INVALID);
}