small bugfix for previous commit (PSRAM caching)

This commit is contained in:
Frank
2025-10-24 16:35:11 +02:00
committed by GitHub
parent 6ce663784d
commit 80a6866f16

View File

@@ -441,7 +441,7 @@ static const uint8_t *getPresetCache(size_t &size) {
File file = WLED_FS.open("/presets.json", "r");
#if ESP_IDF_VERSION_MAJOR >= 4
if (file) f.setBufferSize(FS_BUFSIZE*2); // reduced internal buffer leads to shorter blocking delay, and might prevent LED glitches
if (file) file.setBufferSize(FS_BUFSIZE*2); // reduced internal buffer leads to shorter blocking delay, and might prevent LED glitches
#endif
if (file) {
presetsCachedTime = presetsModifiedTime;