1
0
Fork 0
forked from forks/qmk_firmware

[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:
Gabes Mak 2019-08-25 20:50:29 +01:00 committed by Drashna Jaelre
parent 957070a6b5
commit 0b89809ac4

View file

@ -91,10 +91,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
void matrix_scan_user(void) {
uint8_t layer = biton32(layer_state);
switch (layer) {
layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case _QWERTY:
set_led_off;
break;
@ -110,6 +108,7 @@ void matrix_scan_user(void) {
default:
break;
}
};
return state;
}