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

Problem using the F() macro #252

Closed
nightswimmer opened this issue Apr 29, 2016 · 6 comments
Closed

Problem using the F() macro #252

nightswimmer opened this issue Apr 29, 2016 · 6 comments
Labels

Comments

@nightswimmer
Copy link

I'm having some issues using this library when using the F() macro.
I has been using maniacbugs library for a few years, and now I updated to this one. The radio modules seem to work fine, but all the prints that use the F() macro come out as trash. If I remove the F() macros everything works out fine. This is an issue for me, since in the project I'm working on RAM is an issue. Tested the Getting started sketch plues a couple others with the same results.
Tried it in two new arduino installs (1.7.10 and 1.6.8) but the problem persists. :s Any ideas?

@madleech
Copy link

Yes I've just run into this too when using platform.io. Seems there there is a clash in RF24_config.h:132 when using PROGMEM.

To fix, change:

#elif defined(ARDUINO) && ! defined(__arm__) && !defined (__ARDUINO_X86__) && defined(XMEGA)

To:

#elif defined(ARDUINO) && ! defined(__arm__) && !defined (__ARDUINO_X86__) && !defined(XMEGA)

(or just remove the defined(XMEGA) clause all together)

@TMRh20 TMRh20 added the bug label Apr 30, 2016
TMRh20 added a commit that referenced this issue Apr 30, 2016
@TMRh20
Copy link
Member

TMRh20 commented Apr 30, 2016

This was due to a lack of proper testing on my part I guess but should be fixed now with the latest change. Thanks for identifying the problem!

@akatran
Copy link
Contributor

akatran commented Apr 30, 2016

Should I introduce some compile time messages in order to see what is the compilation flow and what is not?

For example #pragma message "Using avr pgmspace".

Do you think it will flood the compilation log with too much info?

@TMRh20
Copy link
Member

TMRh20 commented Apr 30, 2016

Would be good for testing but I don't think we would want it printing
everything normally.

Sent from my iPod

On 2016-04-30, at 1:35 AM, Apostolos Katranitsas notifications@github.com
wrote:

Should I introduce some compile time messages in order to see what is the
compilation flow and what is not?

For example #pragma message "Using avr pgmspace".

Do you think it will flood the compilation log with too much info?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#252 (comment)

@nightswimmer
Copy link
Author

Great it's working now. Thank you for the quick fix. :)

@akatran
Copy link
Contributor

akatran commented Apr 30, 2016

I can confirm that it doesn't break anything from my side.
The compiled output is exactly the same as before for XMega target.

I didn't have the time to test it on real hardware!

@TMRh20 TMRh20 closed this as completed Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants