Skip to content

Commit d089af8

Browse files
Mark the moonlander keyboard default music map as weak (#18715)
This allows user keymaps to set a different music map.
1 parent 5e4b076 commit d089af8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

keyboards/moonlander/moonlander.c

+1
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ void keyboard_post_init_kb(void) {
358358

359359
#if defined(AUDIO_ENABLE) && defined(MUSIC_MAP)
360360
// clang-format off
361+
__attribute__ ((weak))
361362
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_moonlander(
362363
58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
363364
44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,

keyboards/moonlander/moonlander.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ extern bool mcp23018_leds[];
5555
{ k60, k61, k62, k63, k64, k65, k66 }, \
5656
{ k70, k71, k72, k73, k74, k75, k76 }, \
5757
{ k80, k81, k82, k83, k84, k85, k86 }, \
58-
{ KC_NO,k91, k92, k93, k94, k95, k96 }, \
58+
{ KC_NO, k91, k92, k93, k94, k95, k96 }, \
5959
{ KC_NO, KC_NO, ka2, ka3, ka4, ka5, ka6 }, \
60-
{ KC_NO, KC_NO, KC_NO, kb3, kb4, kb5, kb6 } \
60+
{ KC_NO, KC_NO, KC_NO, kb3, kb4, kb5, kb6 } \
6161
}
6262
// clang-format on
6363

@@ -83,4 +83,4 @@ typedef union {
8383

8484
extern keyboard_config_t keyboard_config;
8585

86-
bool is_transport_connected(void);
86+
bool is_transport_connected(void);

0 commit comments

Comments
 (0)