added a new variable to store the original/previous matrix state, then included a check while going through the matrix cells and avoiding any work if there is no change on the matrix state.
I use layer hold keys and I was having issues with getting the keycode of the layer being hold because of this, adding the matrix cell check solved the problem.
added a new variable to store the original/previous matrix state, then included a check while going through the matrix cells and avoiding any work if there is no change on the matrix state.
I use layer hold keys and I was having issues with getting the keycode of the layer being hold because of this, adding the matrix cell check solved the problem.