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

Fix obstruction isr for ESP32 #38

Merged
merged 1 commit into from
Aug 19, 2023
Merged

Fix obstruction isr for ESP32 #38

merged 1 commit into from
Aug 19, 2023

Conversation

mulcmu
Copy link
Contributor

@mulcmu mulcmu commented Aug 18, 2023

In RATGDOComponent::setup() call the ESPHome code to attach_interrupt() before software serial begin(). This allows ESPHome to call IDF gpio_install_isr_service() without error.

Tested on ESP32, fixes operation of the obstruction sensor from #36. Still get an error in the logs presumably when software serial tries to call gpio_install_isr_service() during setup but connection to garage door works properly.

Needs to be tested on a ESP8266.

In RATGDOComponent::setup() call the ESPHome code to attach_interrupt() before software serial begin().  This allows ESPHome to call IDF gpio_install_isr_service() without error.
@bdraco
Copy link
Member

bdraco commented Aug 19, 2023

This looks fine but I'm traveling so I can't test

@mariusmuja
Copy link
Collaborator

Tested and works ok on ESP8266.

@mariusmuja mariusmuja merged commit 0c07766 into ratgdo:main Aug 19, 2023
4 checks passed
@mulcmu mulcmu mentioned this pull request Aug 19, 2023
@mulcmu mulcmu deleted the esp32_isr branch August 28, 2023 23:12
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