fix: Update examples etc. to use esp_vfs_fat_register

Instead of deprecated esp_vfs_fat_register_cfg
This commit is contained in:
Adam Múdry
2026-02-04 16:33:40 +01:00
parent 38256a6b11
commit d58b9406d8
4 changed files with 9 additions and 9 deletions
@@ -65,11 +65,11 @@ static void test_setup(void)
.fat_drive = drv,
.max_files = 5,
};
ret = esp_vfs_fat_register_cfg(&conf, &fs);
ret = esp_vfs_fat_register(&conf, &fs);
if (ret == ESP_ERR_INVALID_STATE) {
// it's okay, already registered with VFS
} else if (ret != ESP_OK) {
ESP_LOGD(TAG, "esp_vfs_fat_register_cfg failed 0x(%x)", ret);
ESP_LOGD(TAG, "esp_vfs_fat_register failed 0x(%x)", ret);
}
REQUIRE(ret == ESP_OK);