[Bug] Prevent dynamic keymaps from processing layers that don't exist (#19225)
This commit is contained in:
@@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# ifndef DYNAMIC_KEYMAP_LAYER_COUNT
|
||||
# define DYNAMIC_KEYMAP_LAYER_COUNT 4
|
||||
# endif
|
||||
# define MAX_LAYER DYNAMIC_KEYMAP_LAYER_COUNT
|
||||
# if DYNAMIC_KEYMAP_LAYER_COUNT <= 8
|
||||
# ifndef LAYER_STATE_8BIT
|
||||
# define LAYER_STATE_8BIT
|
||||
|
||||
Reference in New Issue
Block a user