Skip to content

Commit

Permalink
fix default layer songs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Aug 10, 2017
1 parent 70407a1 commit 6895c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ extern backlight_config_t backlight_config;
#ifndef AG_SWAP_SONG
#define AG_SWAP_SONG SONG(AG_SWAP_SOUND)
#endif
#ifndef DEFAULT_LAYER_SONGS
#define DEFAULT_LAYER_SONGS { }
#endif
float goodbye_song[][2] = GOODBYE_SONG;
float ag_norm_song[][2] = AG_NORM_SONG;
float ag_swap_song[][2] = AG_SWAP_SONG;
float default_layer_songs[][16][2] = DEFAULT_LAYER_SONGS;
#ifdef DEFAULT_LAYER_SONGS
float default_layer_songs[][16][2] = DEFAULT_LAYER_SONGS;
#endif
#endif

static void do_code16 (uint16_t code, void (*f) (uint8_t)) {
Expand Down Expand Up @@ -560,7 +559,7 @@ void send_string_with_delay(const char *str, uint8_t interval) {
}

void set_single_persistent_default_layer(uint8_t default_layer) {
#ifdef AUDIO_ENABLE
#if defined(AUDIO_ENABLE) && defined(DEFAULT_LAYER_SONGS)
PLAY_SONG(default_layer_songs[default_layer]);
#endif
eeconfig_update_default_layer(1U<<default_layer);
Expand Down

0 comments on commit 6895c45

Please sign in to comment.