Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Added __FlashStringHelper support for PROGMEM #182

wants to merge 5 commits into from

Conversation

brunnels
Copy link

Added in methods and macros to assist with PROGMEM usage

@anakod
Copy link
Member

anakod commented Jul 22, 2015

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.

@brunnels
Copy link
Author

Okay, thanks for the info. I didn't know that. I'll modify this evening.
On Jul 22, 2015 9:24 AM, "Skurydin Alexey" notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHub
#182 (comment).

@brunnels
Copy link
Author

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("");
Copy link
Member

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?

Copy link
Author

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.

@AutomationD
Copy link
Contributor

@brunnels thank you so much for your PR.
We are trying to implement git-flow (#230). Can you please re-submit your PR to a feature branch?
For example feature/progmem-flashstring-helper?
Also, please squash your commits to one - too many of them.

@hreintke
Copy link
Contributor

hreintke commented Oct 7, 2015

@brunnels :
We are restructuring and cleaning Sming repository and PR's.
Can you please squash your commits as some are reverting others and complete PR is unclear.
I have seen updates to ArduinoJson source. Can you explicitly mention why you want that update as it would diverge form the used library.
PS There are plans to upgrade to a newer version of ArduinoJson.

@hreintke
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants