-
Notifications
You must be signed in to change notification settings - Fork 13.3k
PSTR no longer supports concatenated string literals #6575
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
Comments
GAS doesn't support the C language idiom of catenating two strings together with quotes (i.e. "x" "y" === "xy"). Specify the section attribute fully in the section attribute, instead, to allow this. Fixes esp8266#6575 and probably esp8266#6574
#6577 (a 1-line change you can manually add to your git repo, or do the full pull request) fixes this. Basically, when PSTR uses assembly, tricks like this string concat (commonly used in debug messages, too) don't work, GAS doesn't understand them. Your MCVE works fine with this change. |
Thanks, I can confirm that it fixes the problem reported. |
Just reopening to track that it's no fixed until the final merge of that PR... |
----------------------------- Delete below -----------------------------
If your issue is a general question, starts similar to "How do I..", is related to 3rd party libs, or is related to hardware, please discuss at a community forum like esp8266.com.
INSTRUCTIONS
If you do not follow these instructions, your issue may be dismissed.
https://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/stack_dump.html
https://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/debugging.html
----------------------------- Delete above -----------------------------
Basic Infos
Platform
Settings in IDE
Problem Description
Only the first string literal of a concatenated pair is printed in the sketch below.
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: