-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Avoid Arduino.h
if its features are disabled (fixes #1692)
#1693
Conversation
Arduino.h
if its features are disabled (fixes #1692)
Hi @paulocsanz, Thank you very much for this contribution 👍 I think including Please remove
Finally, include Hopefully, everything should compile correctly. Best regards, |
Thank you very much for the help, it worked flawlessly, I've updated my fork and we are successfully using it in production while waiting for this merge to land :). Happy holidays, if that's your thing! Best Regards, |
AVR and SAMD builds are failing on platformio. This is the error on AVR:
And on SAMD:
It looks like we revealed a bug: including Can you try to find an elegant solution? |
I see, thank you for the help, I will look into a more elegant solution, I've setup the CI in my own fork and am iterating over the code. |
I spent a long time iterating over alternatives and what I've found is that since modules haven't really landed/become mainstream any header can include any other header. So the only way I was able to fix this was by including So it seems we could track down all headers included that includes
It seems that Anyway, it seems too much resources spent on trying to fix a very small problem. Could we time-box it and move forward with a less elegant solution? I am open to suggestions tho. |
Sorry, it was late, I screwed something up, I will fix it in my fork and then update here. Can I bother you with a question to help speed things up? How can I run these tests locally to not depend on my fork's CI? Only the linter and the four broken ones are more than enough. Is there any doc around that? |
Don't worry, I'll take care of it; I'm unfortunately used to working around these quirks. |
Great to see this merged! Thank you very much for fixing my mess! But won't this cause problems for As if it's not defined it checks at /ArduinoJson/Configuration.hpp#L154 to see if Or am I reading too much into it? My last approach included |
You're right; it might be an issue if |
I'm wondering if we could simply assume that PROGMEM is available as soon as |
PIO doesn't actually include We only I hadn't actually had problems with that part of the code as we don't use it, but since I saw that it expects Weren't the CI failures we found related to |
I may have been mistaken about |
Indeed, PlatformIO only includes |
Fixes #1692
It's not clear if this is the best solution. I'm open to suggestions and will modify the PR accordingly.