From 3dbe738ac8f1547d39f04630d2e6b28ac6f64edc Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 6 Nov 2013 14:47:11 -0500 Subject: [PATCH] slightly better behavior if holding two layer keys --- ArduinoKeyboard.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;