Skip to content

Commit

Permalink
Move SENDSTRING_BELL code to send_string.h (#13566)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Jul 16, 2021
1 parent 4bef126 commit 332a5aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ float goodbye_song[][2] = GOODBYE_SONG;
# ifdef DEFAULT_LAYER_SONGS
float default_layer_songs[][16][2] = DEFAULT_LAYER_SONGS;
# endif
# ifdef SENDSTRING_BELL
float bell_song[][2] = SONG(TERMINAL_SOUND);
# endif
#endif

#ifdef AUTO_SHIFT_ENABLE
Expand Down
8 changes: 8 additions & 0 deletions quantum/send_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@

#include "send_string.h"

#if defined(AUDIO_ENABLE) && defined(SENDSTRING_BELL)
# include "audio.h"
# ifndef BELL_SOUND
# define BELL_SOUND TERMINAL_SOUND
# endif
float bell_song[][2] = SONG(BELL_SOUND);
#endif

// clang-format off

/* Bit-Packed look-up table to convert an ASCII character to whether
Expand Down

0 comments on commit 332a5aa

Please sign in to comment.