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

Fixes for encoder abstraction. #23195

Merged
merged 6 commits into from
Mar 10, 2024
Merged

Conversation

tzarc
Copy link
Member

@tzarc tzarc commented Mar 2, 2024

Description

As reported on Discord (here onwards), and subsequently #23191.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@tzarc tzarc requested a review from a team March 2, 2024 04:17
@tzarc tzarc marked this pull request as draft March 2, 2024 09:19
@tzarc tzarc force-pushed the bugfix/encoder-abstraction branch 2 times, most recently from 066d916 to 1d716ae Compare March 2, 2024 09:53
@tzarc tzarc force-pushed the bugfix/encoder-abstraction branch from 1d716ae to 50bb700 Compare March 2, 2024 09:53
@jasonish
Copy link

jasonish commented Mar 2, 2024

As mentioned in Discord, this didn't help. I might poke around bit myself, but not sure if I'll get anywhere. But happy test anything. Just @ me or I'll keep an eye on this pull request.

@finrod09
Copy link
Contributor

finrod09 commented Mar 6, 2024

This seems to help. In the worst-case scenario of a loaded-up keymap/userspace and a pointing device on the slave, I could not observe a spurious encoder event within 30 minutes, when it occured at least once within one minute before in this scenario.

@jasonish
Copy link

jasonish commented Mar 6, 2024

This is working for me so far, the second encoder is now usable.

@ireun
Copy link
Contributor

ireun commented Mar 7, 2024

I can also confirm it's working - Sofle RGB here

@Coko7
Copy link

Coko7 commented Mar 7, 2024

As mentioned in my comment on issue #23191, this fix solves the problem for me, and I have yet to face the initial problem again.
I am using a sofle/rev1 with RGB and I confirm that it is working.

@tzarc
Copy link
Member Author

tzarc commented Mar 8, 2024

@finrod09 @jasonish @ireun @Coko7 once more a set of changes, would be great to confirm.

Marking it as ready for review in the meantime, hopefully if it all goes well on your end we can sort out a merge on ours.

@tzarc tzarc marked this pull request as ready for review March 8, 2024 12:04
Copy link
Member Author

@tzarc tzarc left a comment

Choose a reason for hiding this comment

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

Notes for self

quantum/encoder.c Outdated Show resolved Hide resolved
quantum/encoder.c Outdated Show resolved Hide resolved
quantum/encoder.c Outdated Show resolved Hide resolved
quantum/encoder.c Outdated Show resolved Hide resolved
@ireun
Copy link
Contributor

ireun commented Mar 8, 2024

Still fine on my end, encoders on both sides of Sofle RGB working correctly. Thank You @tzarc. <3

Ψ Git branch: bugfix/encoder-abstraction
Ψ Repo version: 0.24.2
Ψ - Latest bugfix/encoder-abstraction: 2024-03-08 23:00:42 +1100 (d4eda060e3) -- Move queue drain to main thread.

@finrod09
Copy link
Contributor

finrod09 commented Mar 9, 2024

Sorry for the delay!

I can also confirm that it's still fine as of 5bf5fc1: I can no longer provoke encoder misbehaviour.

@drashna drashna requested a review from a team March 10, 2024 01:19
@tzarc tzarc merged commit 3e1ac7a into qmk:master Mar 10, 2024
3 of 4 checks passed
@tzarc tzarc deleted the bugfix/encoder-abstraction branch March 10, 2024 11:24
vpadillap pushed a commit to vpadillap/qmk_firmware that referenced this pull request Mar 11, 2024
mzyt pushed a commit to mzyt/qmk_firmware that referenced this pull request May 6, 2024
whoisjordangarcia pushed a commit to whoisjordangarcia/qmk_firmware that referenced this pull request Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Encoder on slave continues to trigger forever once activated
6 participants