Skip to content

Fix oneshot toggle logic #16630

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

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Fix oneshot toggle logic #16630

merged 3 commits into from
Mar 14, 2022

Conversation

drashna
Copy link
Member

@drashna drashna commented Mar 13, 2022

Description

#16617 tried to fix the bug, but honestly made it more convoluted, and broke it further.

This changes the variable name and simplifies the logic, so it's clear and concise.

Types of Changes

  • Core
  • Bugfix

Issues Fixed or Closed by This PR

  • Oneshot toggle and oneshot keys broken.

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).

@drashna drashna requested a review from a team March 13, 2022 09:59
@github-actions github-actions bot added the core label Mar 13, 2022
@drashna
Copy link
Member Author

drashna commented Mar 13, 2022

Honestly, I'd prefer a lighter touch, but fixing the function created some very convoluted logic. And just made it harder to read.

we could go with that, but I think this would be more maintainable then negatives and double negatives, etc.

@zvecr
Copy link
Member

zvecr commented Mar 13, 2022

You would also need to bump the eeprom version given the value is now inverted.

@zvecr zvecr requested review from fauxpark and a team March 13, 2022 23:53
@zvecr zvecr merged commit b8574ef into qmk:develop Mar 14, 2022
@drashna drashna deleted the fix/oneshot_mods branch March 14, 2022 01:52
0xcharly pushed a commit to Bastardkb/bastardkb-qmk that referenced this pull request Jul 4, 2022
* Fix oneshot toggle logic

* Enable oneshots by default

* Decrement eeconfig magic number due to eeconfig changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants