From 788d70c1a78a30d75a5a286f04d8451162bb7f6e Mon Sep 17 00:00:00 2001 From: Florian Didron <0x6664@hey.com> Date: Fri, 3 Mar 2023 08:36:52 +0700 Subject: hotfix: restores Halfmoon layout / music map macros --- keyboards/moonlander/moonlander.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'keyboards/moonlander/moonlander.c') diff --git a/keyboards/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c index c217782d3f..88483e3365 100644 --- a/keyboards/moonlander/moonlander.c +++ b/keyboards/moonlander/moonlander.c @@ -358,6 +358,16 @@ void keyboard_post_init_kb(void) { #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) // clang-format off +#ifdef HALFMOON + const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_halfmoon( + 29, 30, 31, 32, 33, 34, 35, + 22, 23, 24, 25, 26, 27, 28, + 15, 16, 17, 18, 19, 20, 21, + 9, 10, 11, 12, 13, 14, + 4, 5, 6, 7, 8, 3, + 0, 1, 2 + ); +#else 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, @@ -366,6 +376,7 @@ const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_moonlander( 8, 9, 10, 11, 12, 3, 4, 13, 14, 15, 16, 17, 0, 1, 2, 5, 6, 7 ); +#endif // clang-format on #endif @@ -439,9 +450,9 @@ void matrix_init_kb(void) { } void eeconfig_init_kb(void) { // EEPROM is getting reset! - keyboard_config.raw = 0; - keyboard_config.led_level = true; - keyboard_config.led_level_res = 0b11; + keyboard_config.raw = 0; + keyboard_config.led_level = true; + keyboard_config.led_level_res = 0b11; eeconfig_update_kb(keyboard_config.raw); eeconfig_init_user(); } -- cgit v1.2.3