Lixie-Labs / Emotiscope

Let your eyes enjoy the music too ✨ Extremely low-latency audio processing lets LEDs perfectly synchronize to your music's notation and tempo.
https://emotiscope.rocks/
GNU General Public License v3.0
27 stars 5 forks source link

save_config() causes a large frame stutter whenever called #38

Closed github-actions[bot] closed 4 months ago

github-actions[bot] commented 4 months ago

Maybe I can chunk the file save operations?

https://github.com/Lixie-Labs/Emotiscope/blob/d86b5e6b51d8d961487226109ad7624e71e13e05/src/configuration.h#L74


}

// Save configuration to LittleFS
// TODO: save_config() causes a large frame stutter whenever called
// Maybe I can chunk the file save operations?
bool save_config() {
    File file = LittleFS.open(CONFIG_FILENAME, FILE_WRITE);
    if (!file) {