Support 500 character file names

Fixes #265
This commit is contained in:
Dave Allie 2026-01-07 23:27:49 +11:00
parent 2b12a65011
commit d34532b459
No known key found for this signature in database
GPG Key ID: F2FDDB3AD8D0276F
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ void SleepActivity::renderCustomSleepScreen() const {
auto dir = SdMan.open("/sleep");
if (dir && dir.isDirectory()) {
std::vector<std::string> files;
char name[128];
char name[500];
// collect all valid BMP files
for (auto file = dir.openNextFile(); file; file = dir.openNextFile()) {
if (file.isDirectory()) {

View File

@ -39,7 +39,7 @@ void FileSelectionActivity::loadFiles() {
root.rewindDirectory();
char name[128];
char name[500];
for (auto file = root.openNextFile(); file; file = root.openNextFile()) {
file.getName(name, sizeof(name));
if (name[0] == '.' || strcmp(name, "System Volume Information") == 0) {

View File

@ -194,7 +194,7 @@ void CrossPointWebServer::scanFiles(const char* path, const std::function<void(F
Serial.printf("[%lu] [WEB] Scanning files in: %s\n", millis(), path);
FsFile file = root.openNextFile();
char name[128];
char name[500];
while (file) {
file.getName(name, sizeof(name));
auto fileName = String(name);