-
Notifications
You must be signed in to change notification settings - Fork 9
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
A fix for a new regression in stable v5.0 #16
Conversation
Hello tajnymag, |
Hi, Official migration doc: https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/migration-guides/release-5.x/gcc.html#int32-t-and-uint32-t-for-xtensa-compiler |
Ok. I've just read the issue here. Your request would resolve the issue for v5.0 but will cause a bug with older versions. To get this to work with all versions, there is a need to use "inttypes.h" content and use PRIu32 and PRIi32 in the formatting strings instead of %ld or %ud. This would be a change required to all pieces of code that must go to version 5.0 Do you want to make the change and reconduct a fix? I can do it if you can't. |
Makes sense. I can do it tomorrow. |
As an example, the following:
would become:
Not sure if (unsigned int) would require some change... |
Another one: |
Related issue: espressif/esp-idf#10379
I just changed
%d
to%ld
and the compiler seems to be happy now.EDIT: I've also changed components version number in
idf_component.yml
back to0.9.8
because idf component manager complained about the version not being semantic.