From 4601348cbb9d59c5e969e3bf0abdaa2940f23cc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= <pippin@gimp.org>
Date: Sun, 13 Aug 2023 13:47:09 +0200
Subject: [PATCH] st3m,fs_flash: raise max files to 32

There seems to be a leak somewhere, causing trouble if you have
more than 16ish apps, this is merely a stopgap for initial
power users.
---
 components/st3m/st3m_fs_flash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/st3m/st3m_fs_flash.c b/components/st3m/st3m_fs_flash.c
index a3a9f4f5fe..c32b7e099a 100644
--- a/components/st3m/st3m_fs_flash.c
+++ b/components/st3m/st3m_fs_flash.c
@@ -110,7 +110,7 @@ static esp_err_t _st3m_fs_flash_mount_unlocked(void) {
     }
 
     FATFS *fs;
-    esp_vfs_fat_mount_config_t mount_config = { .max_files = 16,
+    esp_vfs_fat_mount_config_t mount_config = { .max_files = 32,
                                                 .format_if_mount_failed = true,
                                                 .allocation_unit_size =
                                                     CONFIG_WL_SECTOR_SIZE };
@@ -256,4 +256,4 @@ esp_err_t st3m_fs_flash_erase(void) {
 size_t st3m_fs_flash_get_blocksize(void) { return wl_sector_size(_wl_handle); }
 size_t st3m_fs_flash_get_blockcount(void) {
     return wl_size(_wl_handle) / wl_sector_size(_wl_handle);
-}
\ No newline at end of file
+}
-- 
GitLab