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 broken ESP32 gpio interrupt trigger none #1399

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

UncleGrumpy
Copy link
Collaborator

Fixes the implementation of the none trigger that has been documented since release-0.5, but was apparently never tested, its use causes a error (see #1386).

Moves the main functionality from gpiodriver_remove_int into a new unregister_interrupt_listener funtion that is also used when setting the interrupt trigger to none to remove an interrupt.

Closes #1386

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Fixes the implementation of the `none` trigger that has been documented since release-0.5, but was
apparently never tested, its use causes a error (see atomvm#1386).

Moves the main functionality from `gpiodriver_remove_int` into a new `unregister_interrupt_listener`
funtion that is also used when setting the interrupt trigger to `none` to remove an interrupt.

Closes atomvm#1386

Signed-off-by: Winford <winford@object.stream>
@bettio bettio merged commit bf3783c into atomvm:release-0.6 Dec 17, 2024
26 checks passed
@UncleGrumpy UncleGrumpy deleted the esp32_gpio_int-none branch December 30, 2024 08:20
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.

2 participants