-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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 oneshot toggle logic #16630
Merged
Merged
Fix oneshot toggle logic #16630
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fauxpark
requested changes
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. |
drashna
force-pushed
the
fix/oneshot_mods
branch
from
March 13, 2022 10:40
ff68993
to
b728610
Compare
You would also need to bump the eeprom version given the value is now inverted. |
zvecr
approved these changes
Mar 13, 2022
fauxpark
approved these changes
Mar 14, 2022
cadusk
pushed a commit
to cadusk/qmk_firmware
that referenced
this pull request
Mar 14, 2022
* qmk/develop: (696 commits) Sentence correction (qmk#16650) [Keyboard] Add via keymap to AL1 (qmk#16499) Rename TICK to TICK_EVENT to prevent naming conflicts (qmk#16649) [Keyboard] Add BAMFK-1 (qmk#16409) Disable RGB matrix pixel animations for some boards (qmk#16643) keebio/iris: Add ifdefs to encoder callbacks (qmk#16642) bolsa/damapad - Fix missing layout macro (qmk#16639) Mousekeys fix (qmk#16640) Fix oneshot toggle logic (qmk#16630) Fix 40percentclub USB descriptors (qmk#16638) [Core] Move `has_mouse_report_changed` function to `report.c` (qmk#16543) ISP flashing guide: add instructions for flashing STM32duino bootloader (qmk#16568) Move keyboard USB IDs and strings to data driven: 0-9 (qmk#16481) USB-USB converter cleanup (qmk#16618) [Keyboard] Add "Uno" rev2 (qmk#14071) [Keyboard] Add support for Jels60 (qmk#16605) helix:edvorakjp keymap change to use split_common (qmk#16532) [Keymap] Update personal crkbd keymap (qmk#16624) [Keyboard] add missing endif in glitch keyboard (qmk#16629) [Keyboard] Add damapad (qmk#16443) ...
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Issues Fixed or Closed by This PR
Checklist