[Bug] Prevent dynamic keymaps from processing layers that don't exist (#19225)

This commit is contained in:
Drashna Jaelre authored and GitHub committed 2023-01-01 11:55:14 +11:00
1 parent d0ebafaea6
commit ac561b9473
11 files changed
+21 -69

No files matched your search

+1
View File
@@ -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