[Keymap] Redox_w Use layer_state_set_user instead of matrix_scan_user (#6608)
* use layer_state_set_user * fix
This commit is contained in:
parent
957070a6b5
commit
0b89809ac4
1 changed files with 8 additions and 9 deletions
|
@ -91,10 +91,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void matrix_scan_user(void) {
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
uint8_t layer = biton32(layer_state);
|
switch (get_highest_layer(state)) {
|
||||||
|
|
||||||
switch (layer) {
|
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
set_led_off;
|
set_led_off;
|
||||||
break;
|
break;
|
||||||
|
@ -110,6 +108,7 @@ void matrix_scan_user(void) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue