Files
WLED_MM_Infinity/wled00/file.cpp
Frank 6ce663784d bugfix to prevent random corruption of presets.json
accroding to the docs of setBufferSize() and svbuf():
> setBufferSize() has to be called right after opening file before any other operation!

so changing buffer sizes on an already opened and partially read file can cause file corruption as the internal buffer is exchanged "mid-flight".

Fix: move all f.setBufferSize() so they appear directly after f.open().
2025-10-24 16:24:33 +02:00

18 KiB