-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
Make default layer size 16-bit #15286
Conversation
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.
LGTM and is a sane default.
I can already hear the unrest that would come from the havoc caused by all the |
That's why you're supposed to use |
Yes, indeed but I still see too many people on the QMK discord server posting code bits using |
Speaking of
|
We try to avoid changing user code en masse like that... |
That's because it in a lot of the default keymaps. And people copy and paste code. But I've been flagging that in any new PRs, so more copy-paste code hasn't been incorrectly added. Edit: I've updated the default keymaps, docs, and associated kb files to use |
a2b90a6
to
5c98461
Compare
5c98461
to
ade1290
Compare
Also, some of the rational behind not changing all of the user files doing this (besides, "that's a lot of work"), is that using biton32 will work and "fail gracefully". So there is no harm in leaving it. But future examples and the default keymps should use the correct function. |
Also worth noting that the configurator currently supports more than 8 layers. And some keyboards also set |
ade1290
to
4cf2296
Compare
The dynamic keymap layer count is already taken into account, but github doesn't show a lot of context. Literally, right above: However, the configurator is a good point, and this PR should wait to be merged until there is something in place to handle that. |
4cf2296
to
32f3006
Compare
Merge conflicts. |
32f3006
to
5db91e7
Compare
5db91e7
to
fb64c4b
Compare
ac28772
to
dab2d54
Compare
dab2d54
to
737732e
Compare
Seems to break the helix boards. |
Deferred to Q3 so helix can be fixed and verified. |
How was this breaking the helix boards? I do see one keymap that won't compile, but that's because it's doing some really weird stuff. All the rest compile. However, I don't have a board to test on. |
I don't remember, and at this stage I'm inclined to say "develop can break, we can fix over time if issues occur". |
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Description
Set the layer state to be 16-bit by default.
I would rather set this to 8-bit, but until the configurator can handle that without issue, ... it supports 16 layers, so this would work in the meanwhile.
And this allows for smaller compiled sizes.
Types of Changes
Checklist