-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
What happened?
Installed the AutoSave usermod with these flags:
-D USERMOD_AUTO_SAVE -D AUTOSAVE_AFTER_SEC=10 -D AUTOSAVE_PRESET_NUM=100 -D USERMOD_AUTO_SAVE_ON_BOOT=true
Relevant screenshots:
(presets section on the main page)

(Relevant section from "LED Preferences")

Am i missing a setting somewhere?
To Reproduce Bug
Install the usermod with these flags:
-D USERMOD_AUTO_SAVE -D AUTOSAVE_AFTER_SEC=10 -D AUTOSAVE_PRESET_NUM=100 -D USERMOD_AUTO_SAVE_ON_BOOT=true
Create a preset with id 100 and some effect
Change your effect and wait for at least AUTOSAVE_AFTER_SEC=10 (10 seconds).
Reboot.
You now get your initial effect in id 100 where i was expecting autosave kick in and save the change i made automatically.
Expected Behavior
Preset loads at boot.
Install Method
Self-Compiled
What version of WLED?
WLED 0.14.2-b1 (build 2402120)
Which microcontroller/board are you seeing the problem on?
ESP32-S3
Relevant log/trace output
No response
Anything else?
I did compile from source so this is the current git version as of the moment of this post.
AutoSave is freakingly annoying to setup. It's completely unclear to me if i already need to have a preset to which i "tie" autosave. If i don't have a preset then i get a weirdly named one created by autosave. I did try that path and that only saved my initial settings. It didn't update - autosave - any changes i made.
In the compile flags i explicitly said -D AUTOSAVE_PRESET_NUM=100 which is ignored in the usermod gui. It's default is 250. Therefore i'm not at all sure if what i set in the compile flags is even properly used in autosave. Clearly the flags are in the right place else the whole usermod wouldn't be visible (compiled in).
My assumption is AutoSave to update my preset with new changes. It doesn't need to do anything else as the preset to load at boot is already set in the LED Preferences. If this assumption is correct, how do i get AutoSave to play well?
Code of Conduct
- I agree to follow this project's Code of Conduct
