diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-01-20 00:06:52 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-01-20 00:06:52 -0500 |
commit | eb61700912f1713ba27d34c23d7f07be66ee6513 (patch) | |
tree | 7781c85a3e67a3af34a31a09d6736f07b6a492fe /keyboard/planck/keymaps/keymap_default.c | |
parent | 6e3c36360ed291b9ca2bd014571236308a933d0c (diff) |
better integrations
Diffstat (limited to 'keyboard/planck/keymaps/keymap_default.c')
-rw-r--r-- | keyboard/planck/keymaps/keymap_default.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboard/planck/keymaps/keymap_default.c b/keyboard/planck/keymaps/keymap_default.c index 49670dafd3..a9c2a06813 100644 --- a/keyboard/planck/keymaps/keymap_default.c +++ b/keyboard/planck/keymaps/keymap_default.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); } |