diff options
Diffstat (limited to 'keyboard/planck/keymaps/default/keymap.c')
| -rw-r--r-- | keyboard/planck/keymaps/default/keymap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboard/planck/keymaps/default/keymap.c b/keyboard/planck/keymaps/default/keymap.c index 5591b337d..207af2a1d 100644 --- a/keyboard/planck/keymaps/default/keymap.c +++ b/keyboard/planck/keymaps/default/keymap.c | |||
| @@ -194,7 +194,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 194 | case _QW: | 194 | case _QW: |
| 195 | if (record->event.pressed) { | 195 | if (record->event.pressed) { |
| 196 | #ifdef AUDIO_ENABLE | 196 | #ifdef AUDIO_ENABLE |
| 197 | play_notes(&tone_qw, false, 0); | 197 | PLAY_NOTE_ARRAY(tone_qw, false, 0); |
| 198 | #endif | 198 | #endif |
| 199 | default_layer_set(1UL<<_QW); | 199 | default_layer_set(1UL<<_QW); |
| 200 | } | 200 | } |
| @@ -202,7 +202,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 202 | case _CM: | 202 | case _CM: |
| 203 | if (record->event.pressed) { | 203 | if (record->event.pressed) { |
| 204 | #ifdef AUDIO_ENABLE | 204 | #ifdef AUDIO_ENABLE |
| 205 | play_notes(&tone_cm, false, 0); | 205 | PLAY_NOTE_ARRAY(tone_cm, false, 0); |
| 206 | #endif | 206 | #endif |
| 207 | default_layer_set(1UL<<_CM); | 207 | default_layer_set(1UL<<_CM); |
| 208 | } | 208 | } |
| @@ -210,7 +210,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 210 | case _DV: | 210 | case _DV: |
| 211 | if (record->event.pressed) { | 211 | if (record->event.pressed) { |
| 212 | #ifdef AUDIO_ENABLE | 212 | #ifdef AUDIO_ENABLE |
| 213 | play_notes(&tone_dv, false, 0); | 213 | PLAY_NOTE_ARRAY(tone_dv, false, 0); |
| 214 | #endif | 214 | #endif |
| 215 | default_layer_set(1UL<<_DV); | 215 | default_layer_set(1UL<<_DV); |
| 216 | } | 216 | } |
| @@ -254,7 +254,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 254 | if (record->event.pressed) { | 254 | if (record->event.pressed) { |
| 255 | #ifdef AUDIO_ENABLE | 255 | #ifdef AUDIO_ENABLE |
| 256 | audio_on(); | 256 | audio_on(); |
| 257 | play_notes(&start_up, false, 0); | 257 | PLAY_NOTE_ARRAY(start_up, false, 0); |
| 258 | #endif | 258 | #endif |
| 259 | } | 259 | } |
| 260 | break; | 260 | break; |
| @@ -265,6 +265,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 265 | void matrix_init_user(void) { | 265 | void matrix_init_user(void) { |
| 266 | #ifdef AUDIO_ENABLE | 266 | #ifdef AUDIO_ENABLE |
| 267 | init_notes(); | 267 | init_notes(); |
| 268 | play_notes(&start_up, false, 0); | 268 | PLAY_NOTE_ARRAY(start_up, false, 0); |
| 269 | #endif | 269 | #endif |
| 270 | } | 270 | } |
