-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Added __FlashStringHelper support for PROGMEM #182
Conversation
ICACHE_FLASH_ATTR isn't needed, because Sming building system locate all code to IROM by default. Instead you should mark with iram attrinbute to methods what should go to IRAM memory. __FlashStringHelper will be very fine freature, I think. |
Okay, thanks for the info. I didn't know that. I'll modify this evening.
|
Okay, should be good to go now. |
@@ -14,7 +14,7 @@ | |||
using namespace ArduinoJson; | |||
using namespace ArduinoJson::Internals; | |||
|
|||
JsonStringStorage JsonStringStorage::_invalid(NULL); | |||
JsonStringStorage JsonStringStorage::_invalid(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not NULL or nullptr for invalid values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NULL is macro'd to 0 which is int so throws a build error. You can try
nullptr and see if it builds but I think I tried it.
On Jul 26, 2015 10:41 AM, "Skurydin Alexey" notifications@github.com
wrote:
In Sming/Services/ArduinoJson/src/JsonBuffer.cpp
#182 (comment):@@ -14,7 +14,7 @@
using namespace ArduinoJson;
using namespace ArduinoJson::Internals;-JsonStringStorage JsonStringStorage::_invalid(NULL);
+JsonStringStorage JsonStringStorage::_invalid("");Why not NULL or nullptr for invalid values?
—
Reply to this email directly or view it on GitHub
https://github.com/anakod/Sming/pull/182/files#r35494126.
@brunnels : |
This issue has been inactive for a long period and is being closed. If the issue is still valid please open a new with complete description |
Added in methods and macros to assist with PROGMEM usage