-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Reduce CRKBD firmware size by reducing layer numbers #5471
Conversation
Can this be merged? I tested on my new board and it's a nice boost in available space. |
@foostan any issues with these changes? |
Thanks! LGTM 👍 |
Question: I just converted my keymaps to userspace (in Lenbok@74e7e5a), so now
Is there something I need to do so that |
Ah, yes, this is bugged. :( |
This reverts commit 036d347. Unfortunately, because this is NOT in the keymap itself, the layer macros aren't accessible and will error on commit
@Lenbok I reverted the change, so the code uses hard coded values. That should fix it for now. However, the proper fix is to move as much of the OLED code into the keymap.c file (or into the folder). There are some other possible solutions here, but I think the keymap is the best option, long term. However, this PR's goal isn't to fix that. Right now, it's to reduce the compiled size, to avoid feature creep, and unintentional bloat. |
Sorry for the late reply.
Sounds good for me. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks!
* Reduce CRKBD firmware size by reducing layer numbers * Update layer output code based on mtei's suggestion/code * Fix spacing * Revert "Update layer output code based on mtei's suggestion/code" This reverts commit 036d347. Unfortunately, because this is NOT in the keymap itself, the layer macros aren't accessible and will error on commit * Add comment for future person
* Reduce CRKBD firmware size by reducing layer numbers * Update layer output code based on mtei's suggestion/code * Fix spacing * Revert "Update layer output code based on mtei's suggestion/code" This reverts commit 036d347. Unfortunately, because this is NOT in the keymap itself, the layer macros aren't accessible and will error on commit * Add comment for future person
* Reduce CRKBD firmware size by reducing layer numbers * Update layer output code based on mtei's suggestion/code * Fix spacing * Revert "Update layer output code based on mtei's suggestion/code" This reverts commit 036d347. Unfortunately, because this is NOT in the keymap itself, the layer macros aren't accessible and will error on commit * Add comment for future person
Description
Change the layer values to be sequential. This will reduce the firmware size, at it was using 16 layers, but now uses 4.
Unfortunately, the requires changing both the default keymaps, but other keymaps using the
layer_state_reader
code.So this necesitate the changes of other keymaps.
Types of Changes
Checklist