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:
parent
cd2f939adc
commit
6f7a9d09f5
@ -125,7 +125,7 @@ enum { QWERTY, NUMPAD, FUNCTION }; // layers
|
|||||||
*/
|
*/
|
||||||
// *INDENT-OFF*
|
// *INDENT-OFF*
|
||||||
|
|
||||||
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
KEYMAPS(
|
||||||
|
|
||||||
[QWERTY] = KEYMAP_STACKED
|
[QWERTY] = KEYMAP_STACKED
|
||||||
(___, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext,
|
(___, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext,
|
||||||
@ -173,7 +173,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|||||||
___, ___, Key_Enter, ___,
|
___, ___, Key_Enter, ___,
|
||||||
___)
|
___)
|
||||||
|
|
||||||
};
|
) // KEYMAPS(
|
||||||
|
|
||||||
/* Re-enable astyle's indent enforcement */
|
/* Re-enable astyle's indent enforcement */
|
||||||
// *INDENT-ON*
|
// *INDENT-ON*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user