diff --git a/ArduinoKeyboard.ino b/ArduinoKeyboard.ino index 1900d228..450727a7 100644 --- a/ArduinoKeyboard.ino +++ b/ArduinoKeyboard.ino @@ -203,7 +203,7 @@ void scan_matrix() { - if (! (keymaps[current_layer][row][col].flags ^ ( MOMENTARY | SWITCH_TO_LAYER))) { // this logic sucks. there is a better way TODO this + if (! (keymaps[active_layer][row][col].flags ^ ( MOMENTARY | SWITCH_TO_LAYER))) { // this logic sucks. there is a better way TODO this if (key_is_pressed(matrixState[row][col])) { active_layer = keymaps[current_layer][row][col].rawKey;