Skip to content

Rotary encoder fixes#10198

Open
80HD-0 wants to merge 4 commits intomeshtastic:developfrom
80HD-0:rotary-fixes
Open

Rotary encoder fixes#10198
80HD-0 wants to merge 4 commits intomeshtastic:developfrom
80HD-0:rotary-fixes

Conversation

@80HD-0
Copy link
Copy Markdown

@80HD-0 80HD-0 commented Apr 18, 2026

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

Note: I did not verify the other devices listed because I don't have all of them, but either way, none of them have a rotary encoder, which is the only component this PR is focused on fixing.

This PR fixes a bug with the rotary encoder where an incorrectly defined interrupt handler caused it to constantly fire button press events while the rotary encoder button was held down. By extension, this bypasses the debounce function already implemented. The debounce time was also decreased, since it was a bit long. This is probably due to someone else noticing this bug and trying to fix it by increasing the debounce.

Not only would this bug cause unwanted button presses (like an exit button in a menu reopening the menu instantly), it seemed to crash the device if it was held down longer than about a half second. With this fix, the debounce works as intended, preventing these unwanted presses and stopping the crash that would previously happen.

I have verified that on my Heltec V3, this does not break anything.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 18, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions Bot added the bugfix Pull request that fixes bugs label Apr 18, 2026
@80HD-0 80HD-0 changed the title Rotary fixes Rotary encoder fixes Apr 18, 2026
@caveman99 caveman99 added triaged Reviewed by the team, has enough information and ready to work on now. first-contribution labels Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes bugs first-contribution triaged Reviewed by the team, has enough information and ready to work on now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants