diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-04-28 23:10:40 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-04-28 23:11:09 -0400 |
commit | 27d24faf396367d9f8fadd86324e584b5403d261 (patch) | |
tree | d3fddadb01e19aa1a7f7c31ef7c65282a4b39306 /keyboard/planck/keymaps/default | |
parent | ca9b85f7021ed1338de5af0fd30c6095522a1197 (diff) |
adds condition to one last audio ref in planck default
Diffstat (limited to 'keyboard/planck/keymaps/default')
-rw-r--r-- | keyboard/planck/keymaps/default/keymap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboard/planck/keymaps/default/keymap.c b/keyboard/planck/keymaps/default/keymap.c index fa9c3915a8..e120d358a4 100644 --- a/keyboard/planck/keymaps/default/keymap.c +++ b/keyboard/planck/keymaps/default/keymap.c @@ -325,7 +325,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) layer_off(_LOWER); layer_off(_ADJUST); layer_off(_MUSIC); - stop_all_notes(); + #ifdef AUDIO_ENABLE + stop_all_notes(); + #endif layer_on(_PLOVER); if (!eeconfig_is_enabled()) { eeconfig_init(); |