diff options
author | Drashna Jaelre <[email protected]> | 2022-12-31 16:55:14 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-01 11:55:14 +1100 |
commit | ac561b9473559b7880bcf2510ae5a0ac5cabde7a (patch) | |
tree | 9341305bf6a04e6c8c9274d023cdc9b83f002dc3 /quantum/action_layer.h | |
parent | d0ebafaea6847926e6391a6920821bcb17b3c39c (diff) | |
download | qmk_firmware-ac561b9473559b7880bcf2510ae5a0ac5cabde7a.tar.gz qmk_firmware-ac561b9473559b7880bcf2510ae5a0ac5cabde7a.zip |
[Bug] Prevent dynamic keymaps from processing layers that don't exist (#19225)
Diffstat (limited to 'quantum/action_layer.h')
-rw-r--r-- | quantum/action_layer.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <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 |