Make LittleFS filenames support full size (#2192)

Support 255 character names, not just 32, in LittleFS filesystems.
This commit is contained in:
Earle F. Philhower, III 2024-06-03 09:11:01 -07:00 committed by GitHub
parent 6d6433f256
commit ce45c65568
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@
#include <FS.h>
#include <FSImpl.h>
#define LFS_NAME_MAX 32
#define LFS_NAME_MAX 255
#include "../lib/littlefs/lfs.h"
using namespace fs;

View file

@ -2,7 +2,7 @@
// Just have a stub here that redirects to the actual source file
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#define LFS_NAME_MAX 32
#define LFS_NAME_MAX 255
#define LFS_NO_DEBUG
#define LFS_NO_WARN
#define LFS_NO_ERROR

View file

@ -1,4 +1,4 @@
#define LFS_NAME_MAX 32
#define LFS_NAME_MAX 255
#define LFS_NO_DEBUG
#define LFS_NO_WARN
#define LFS_NO_ERROR