diff options
author | Michael Richters <gedankenexperimenter@gmail.com> | 2017-11-30 12:59:58 -0600 |
---|---|---|
committer | Michael Richters <gedankenexperimenter@gmail.com> | 2017-11-30 12:59:58 -0600 |
commit | 6f7a9d09f569023239e3aa6c4adf77417d1bab0b (patch) | |
tree | 9cbb98f9ca6bacb557b61afebd21ef3013a84f95 | |
parent | cd2f939adc5ec69c6fd5af5b44859df3395a2d08 (diff) | |
download | Model01-Firmware-6f7a9d09f569023239e3aa6c4adf77417d1bab0b.tar.gz Model01-Firmware-6f7a9d09f569023239e3aa6c4adf77417d1bab0b.zip |
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.
-rw-r--r-- | Model01-Firmware.ino | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 14d7efb..e00e535 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -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* |