diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-01-23 20:34:05 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-01-23 20:34:05 -0500 |
commit | 5143c59bdff8e0b8cb896b905ab643ab8293ea47 (patch) | |
tree | 7082bac0facec617715d55deddca2b448ad880fa /keyboard/planck/keymaps/default | |
parent | 544a49329cac78206c0d195f2e7bfd39db05507d (diff) | |
parent | c753bfcc144e4158a1e683c2c93b32667dc08388 (diff) | |
download | qmk_firmware-5143c59bdff8e0b8cb896b905ab643ab8293ea47.tar.gz qmk_firmware-5143c59bdff8e0b8cb896b905ab643ab8293ea47.zip |
Merge branch 'audio' of https://github.com/jackhumbert/tmk_keyboard into smarkefile
Diffstat (limited to 'keyboard/planck/keymaps/default')
-rw-r--r-- | keyboard/planck/keymaps/default/keymap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboard/planck/keymaps/default/keymap.c b/keyboard/planck/keymaps/default/keymap.c index 49670dafd3..a9c2a06813 100644 --- a/keyboard/planck/keymaps/default/keymap.c +++ b/keyboard/planck/keymaps/default/keymap.c @@ -2,7 +2,9 @@ // this is the style you want to emulate. #include "planck.h" -#include "backlight.h" +#ifdef BACKLIGHT_ENABLE + #include "backlight.h" +#endif // Each layer gets a name for readability, which is then used in the keymap matrix below. // The underscores don't mean anything - you can have a layer called STUFF or any other name. @@ -58,7 +60,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) case 0: if (record->event.pressed) { register_code(KC_RSFT); - backlight_step(); + #ifdef BACKLIGHT_ENABLE + backlight_step(); + #endif } else { unregister_code(KC_RSFT); } |