diff options
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 49670dafd..a9c2a0681 100644 --- a/keyboard/planck/keymaps/keymap_default.c +++ b/keyboard/planck/keymaps/keymap_default.c | |||
| @@ -2,7 +2,9 @@ | |||
| 2 | // this is the style you want to emulate. | 2 | // this is the style you want to emulate. |
| 3 | 3 | ||
| 4 | #include "planck.h" | 4 | #include "planck.h" |
| 5 | #include "backlight.h" | 5 | #ifdef BACKLIGHT_ENABLE |
| 6 | #include "backlight.h" | ||
| 7 | #endif | ||
| 6 | 8 | ||
| 7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 9 | // Each layer gets a name for readability, which is then used in the keymap matrix below. |
| 8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 10 | // 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) | |||
| 58 | case 0: | 60 | case 0: |
| 59 | if (record->event.pressed) { | 61 | if (record->event.pressed) { |
| 60 | register_code(KC_RSFT); | 62 | register_code(KC_RSFT); |
| 61 | backlight_step(); | 63 | #ifdef BACKLIGHT_ENABLE |
| 64 | backlight_step(); | ||
| 65 | #endif | ||
| 62 | } else { | 66 | } else { |
| 63 | unregister_code(KC_RSFT); | 67 | unregister_code(KC_RSFT); |
| 64 | } | 68 | } |
