Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Expand pgm_read_... macros #95

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

Merged
ianfixes merged 2 commits into Arduino-CI:master from hlovdal:pgm_macros
Jan 28, 2019
Merged

Conversation

@hlovdal
Copy link
Contributor

@hlovdal hlovdal commented Jan 26, 2019

Highlights from CHANGELOG.md

  • The pgm_read_... preprocessor macros in cpp/arduino/avr/pgmspace.h now expands to an expression with applicable type.

Issues Fixed

Using arduino-1.8.8/hardware/tools/avr/avr/include/avr/pgmspace.h as reference.
@ianfixes ianfixes added bug Something isn't working arduino mocks Compilation mocks for the Arduino library labels Jan 27, 2019
Copy link
Collaborator

This looks awesome. When I was writing the mocks, I had no idea what the data types were supposed to be (or what precise macro could replace them) -- thank you for filling that in!

I assume this fixed a problem for you locally. Can you paste a snippet of (your) code that caused this compile error? I'd like to have that before I merge this, so I can write myself a note to add that unit test later. (You can write the full unit test if you want, but all I need is the example before I'll merge.)

Copy link
Contributor Author

hlovdal commented Jan 28, 2019

I assume this fixed a problem for you locally.

Actually no. I was just looking trough the existing issues, and though "This does not look too difficult to fix, let me have a try".

Copy link
Collaborator

Oh whoops, I was the one with this problem 🤦‍♂️. And I even wrote it down...

https://github.com/ianfixes/arduino_ci/issues/74

@ianfixes ianfixes merged commit c9c8bf1 into Arduino-CI:master Jan 28, 2019
@hlovdal hlovdal deleted the pgm_macros branch January 28, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

arduino mocks Compilation mocks for the Arduino library bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /