Skip to content

Put InterruptLock (from interrupts.h) into namespace esp8266 #6225

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
merged 1 commit into from
Jun 25, 2019

Conversation

dok-net
Copy link
Contributor

@dok-net dok-net commented Jun 24, 2019

Fix now and future collisions with 3rd party Arduino libraries (currently Adafruit DHT has this issue).

…ow and future

collisions with 3rd party Arduino libraries (currently Adafruit DHT has this issue)
@dok-net dok-net changed the title Put InterruptLock (from interrupts.h) into namespace esp8266 to fix n… Put InterruptLock (from interrupts.h) into namespace esp8266 Jun 24, 2019
@dok-net
Copy link
Contributor Author

dok-net commented Jun 24, 2019

@d-a-v @supersjimmie This is the fix for #6223 done in ESP8266 Arduino core.

@d-a-v d-a-v requested a review from devyte June 24, 2019 20:57
Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Note, however, the semantics of this and adafruit/DHT-sensor-library#135 are very different and the DHT library must still be updated. On the 8266 we do a save/restore of the IPL. In the DHT library they are just blindly disabling all then re-enabling all IRQs. It may not be a problem in practice, but it is a different operation.

@d-a-v d-a-v merged commit f5a882d into esp8266:master Jun 25, 2019
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.

3 participants