-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crude hack in presets.cpp #2681
Comments
The upcoming changes I proposed introduce a asynchronous preset loading which always happens within main loop(). |
In SR WLED, we found a solution by
Users feedback was very positive after these changes. No more "lost preset" problems seen. |
Solved in |
I just saw that preset.cpp contains a somewhat 'crude hack' - see below.
It might be dangerous:
-DARDUINO_RUNNING_CORE=0 -DARDUINO_EVENT_RUNNING_CORE=1
in your platformio.inicore
will always have the valuefalse
(i.e.0
).Please consider if there are other options to (more reliably) detect where a file request came from.
https://github.com/Aircoookie/WLED/blob/19c8b4fe2d0d86887d49abd5c965fd1d46502679/wled00/presets.cpp#L14-L24
The text was updated successfully, but these errors were encountered: