-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
In 0.15.0-b7 and -b6, the "release" is always returned as 1
#4260
Comments
I didn't try just manually building the release on my side, maybe they just need to be rebuilt with the correct flags in platformIO? Maybe the person that built them had an override or something. |
Hi @Moustachauve, I've just tried it, and indeed the firmware {
"ver": "0.15.0-b7",
"vid": 2410270,
"cn": "Kōsen",
"release": "1", While {
"ver": "0.15.0-b7",
"vid": 2410270,
"cn": "Kōsen",
"release": "ESP32_WROVER", |
Oh! Some of them work. I tried with ESP8266 binary and it was also showing a 1, so not all of them are incorect. |
It is based on the WLED_RELEASE_NAME define, which is also used to define the name of the output bin by reading this define with _get_cpp_define_value in output_bins.py Therefore I think the value is being set correctly as the define, but is failing to then be properly read into releaseString in wled.h in some cases. I don't think it's anything to do with xml.cpp as all the version and release is single replacement
` |
I think I've worked out what is wrong, just confirming fix |
So the issue is that anytime I am unsure if this is something about how this line works
Or if it's part of the actual build process that is doing the expanding I have tried using |
Try replacing That said, I think best practices would be to ensure the define is always a literal right from the getgo - eg. |
I tried your suggestion of STRINGIFY, but then we just get no expansion at all, so we see "WLED_RELEASE_NAME" as release |
Interesting find, and totally makes sense 👍
|
Swapping the release name to already have the quotes is tricky as we are defining it as a command line arg with -D, so it does not behave in the same way as say i.e
works, however
|
What happened?
Release is always
1
instead ofESP32
or whatever should be needed.To Reproduce Bug
release
field is always1
Expected Behavior
the
release
field should beESP32
.Install Method
Binary from WLED.me
What version of WLED?
WLED 0.15.0-b7 1 (ESP32-D0WDQ5 build 2410270)
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: