diff options
| author | sakumisu <[email protected]> | 2026-02-28 21:54:55 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-02-28 21:54:55 +0800 |
| commit | 74aed61529e34f5ea6478ba850a24a80be9b4b6d (patch) | |
| tree | 51e8e4701f28bc26aa4d45bdb9a60023c4ae5c2f | |
| parent | b5c8565fc8abc791c39d125de95fe5540cc774ca (diff) | |
fix(idf): fix with new vfs register api
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | platform/idf/usbh_fatfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/idf/usbh_fatfs.c b/platform/idf/usbh_fatfs.c index 185aa56b..fef0798f 100644 --- a/platform/idf/usbh_fatfs.c +++ b/platform/idf/usbh_fatfs.c @@ -215,7 +215,12 @@ esp_err_t msc_host_vfs_register(struct usbh_msc *msc_class, strcpy(vfs->base_path, base_path); vfs->pdrv = pdrv; - ret = esp_vfs_fat_register(base_path, drive, mount_config->max_files, &fs); + esp_vfs_fat_conf_t conf = { + .base_path = base_path, + .fat_drive = drive, + .max_files = mount_config->max_files, + }; + ret = esp_vfs_fat_register(&conf, &fs); ESP_GOTO_ON_ERROR(ret, fail, TAG, "Failed to register filesystem, error=%s", esp_err_to_name(ret)); vfs->fs = fs; |
