Make default layer size 16-bit (#15286)

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
Drashna Jaelre
2022-06-18 14:37:51 -07:00
committed by GitHub
parent cfcd647b2e
commit 0da6562c4d
293 changed files with 1249 additions and 1309 deletions

View File

@@ -100,7 +100,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// Runs whenever there is a layer state change.
layer_state_t layer_state_set_user(layer_state_t state) {
uint8_t layer = biton32(state);
uint8_t layer = get_highest_layer(state);
gp100_led_off();
gp103_led_off();

View File

@@ -286,7 +286,7 @@ void matrix_init_user(void) {
}
layer_state_t layer_state_set_user(layer_state_t state) {
switch(biton32(state)) {
switch(get_highest_layer(state)) {
case _QWERTY:
rgblight_sethsv_white();
break;

View File

@@ -70,7 +70,7 @@ bool WINDOWN = false;
bool SHIFTDOWN = false;
void matrix_scan_user(void) {
uint8_t layer = biton32(layer_state);
uint8_t layer = get_highest_layer(layer_state);
switch (layer) {
case 0:

View File

@@ -180,7 +180,7 @@ void matrix_init_user(void) {
//Set a color based on the layer
layer_state_t layer_state_set_user(layer_state_t state) {
switch(biton32(state)) {
switch(get_highest_layer(state)) {
case _LYFK:
rgblight_setrgb_user_LYFK();
break;