1
0

Updated definition of keymaps[] to use KEYMAPS() macro

This change will enable the `layer_count` variable for preventing
reading past the end of the `keymaps[]` array.
This commit is contained in:
Michael Richters 2017-11-30 12:59:58 -06:00
parent cd2f939adc
commit 6f7a9d09f5

View File

@ -125,7 +125,7 @@ enum { QWERTY, NUMPAD, FUNCTION }; // layers
*/
// *INDENT-OFF*
const Key keymaps[][ROWS][COLS] PROGMEM = {
KEYMAPS(
[QWERTY] = KEYMAP_STACKED
(___, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext,
@ -173,7 +173,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
___, ___, Key_Enter, ___,
___)
};
) // KEYMAPS(
/* Re-enable astyle's indent enforcement */
// *INDENT-ON*