From a42d6426d9bbf1ddc15cfe77b3764524269b0d7e Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 30 Apr 2023 18:58:06 +1000 Subject: Remove use of layout macros for `music_map` (#20634) --- keyboards/moonlander/moonlander.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'keyboards/moonlander') diff --git a/keyboards/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c index e81c884adf..4146fc7afb 100644 --- a/keyboards/moonlander/moonlander.c +++ b/keyboards/moonlander/moonlander.c @@ -16,8 +16,6 @@ * along with this program. If not, see . */ - -#include QMK_KEYBOARD_H #include "moonlander.h" keyboard_config_t keyboard_config; @@ -370,14 +368,20 @@ void keyboard_post_init_kb(void) { #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) // clang-format off __attribute__ ((weak)) -const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_moonlander( - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, - 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 8, 9, 10, 11, 12, 3, 4, 13, 14, 15, 16, 17, - 0, 1, 2, 5, 6, 7 -); +const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { + {58, 59, 60, 61, 62, 63, 64}, + {44, 45, 46, 47, 48, 49, 50}, + {30, 31, 32, 33, 34, 35, 36}, + {18, 19, 20, 21, 22, 23, 0}, + { 8, 9, 10, 11, 12, 0, 0}, + { 0, 1, 2, 3, 0, 0, 0}, + {65, 66, 67, 68, 69, 70, 71}, + {51, 52, 53, 54, 55, 56, 57}, + {37, 38, 39, 40, 41, 42, 43}, + { 0, 24, 25, 26, 27, 28, 29}, + { 0, 0, 13, 14, 15, 16, 17}, + { 0, 0, 0, 4, 5, 6, 7} +}; // clang-format on #endif -- cgit v1.2.3