avoid layer inception

master
Stefan Dorn 2016-08-09 01:11:31 +01:00
parent 20343f60b9
commit 3bfad0fb5c
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ void layer_disable(layer l) {
for (u8 row=0; row<KB_ROWS; row++) {
for (u8 col=0; col<KB_COLUMNS; col++) {
if (layers_pressed[row][col] == l) {
layers_pressed[row][col] = 0;
exec_key(l, row, col, false);
layers_pressed[row][col] = layers_top;
exec_key(layers_top, row, col, true);