From ac561b9473559b7880bcf2510ae5a0ac5cabde7a Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 31 Dec 2022 16:55:14 -0800 Subject: [Bug] Prevent dynamic keymaps from processing layers that don't exist (#19225) --- quantum/action_layer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'quantum/action_layer.h') diff --git a/quantum/action_layer.h b/quantum/action_layer.h index bd1085a70f..3fe2726529 100644 --- a/quantum/action_layer.h +++ b/quantum/action_layer.h @@ -25,6 +25,7 @@ along with this program. If not, see . # 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 -- cgit v1.2.3