[Keymap] Redox_w Use layer_state_set_user instead of matrix_scan_user (#6608)

* use layer_state_set_user

* fix
pull/6455/merge
Gabes Mak 5 years ago committed by Drashna Jaelre
parent 957070a6b5
commit 0b89809ac4

@ -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…
Cancel
Save