Skip to content

Fix button interrupt after light sleep - #3587

Merged
thebentern merged 9 commits into
meshtastic:masterfrom
todd-herbert:lightsleep-interrupt-fix
Apr 11, 2024
Merged

Fix button interrupt after light sleep#3587
thebentern merged 9 commits into
meshtastic:masterfrom
todd-herbert:lightsleep-interrupt-fix

Conversation

@todd-herbert

Copy link
Copy Markdown
Contributor

In collaboration with @mverch67

Addresses issues created by #3521: user-button interrupt causes crash after gpio_wakeup_enable is used in sleep.cpp

@mverch67
mverch67 requested a review from thebentern April 10, 2024 08:09
@thebentern
thebentern merged commit 8e29efc into meshtastic:master Apr 11, 2024
@todd-herbert
todd-herbert deleted the lightsleep-interrupt-fix branch April 11, 2024 15:19
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
* Make ButtonThread instance extern
Previously was a static local instance in setup(). Now declared in ButtonThread.cpp, accessible via extern declaration in ButtonThread.

* Extract attachInterrupt() calls to public method; create matching method for detachInterrupt()

* Change suspension of button interrupts for light-sleep

* Fix declaration for ARCH_PORTDUINO

* Remove LOG_DEBUG used during testing

* Don't assume device has a button..

* Guard entire constructor code

* Don't use BUTTON_PIN with ARCH_PORTDUINO

---------

Co-authored-by: Manuel <71137295+mverch67@users.noreply.github.com>
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