diff options
author | Brian Choromanski <BrianChoromanski@gmail.com> | 2018-03-12 18:18:40 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-13 02:21:18 -0400 |
commit | 4464d90f4d3e64180f619d0663b8dd8f9b29b7e9 (patch) | |
tree | 2cabd2ea555666e7c0de48024139e27d1909cb31 /keyboards/planck/keymaps/khord | |
parent | 2dacf25f284551fa423bfdb309b4ad99e4253095 (diff) | |
download | qmk_firmware-4464d90f4d3e64180f619d0663b8dd8f9b29b7e9.tar.gz |
Fixed plank keymaps so that they will compile for planck light
Diffstat (limited to 'keyboards/planck/keymaps/khord')
-rw-r--r-- | keyboards/planck/keymaps/khord/config.h | 2 | ||||
-rw-r--r-- | keyboards/planck/keymaps/khord/keymap.c | 16 |
2 files changed, 14 insertions, 4 deletions
diff --git a/keyboards/planck/keymaps/khord/config.h b/keyboards/planck/keymaps/khord/config.h index 43c8001cf..955f6a113 100644 --- a/keyboards/planck/keymaps/khord/config.h +++ b/keyboards/planck/keymaps/khord/config.h @@ -12,7 +12,9 @@ } #endif +#ifndef LIGHT_CONFIG_H #define BACKLIGHT_BREATHING +#endif #define TAPPING_TERM 150 #define MUSIC_MASK (keycode != KC_NO) diff --git a/keyboards/planck/keymaps/khord/keymap.c b/keyboards/planck/keymaps/khord/keymap.c index 642936909..1ecab9bfb 100644 --- a/keyboards/planck/keymaps/khord/keymap.c +++ b/keyboards/planck/keymaps/khord/keymap.c @@ -123,22 +123,30 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { switch(id) { case MACRO_BREATH_TOGGLE: if (record->event.pressed) { - breathing_toggle(); + #ifdef BACKLIGHT_BREATHING + breathing_toggle(); + #endif } break; case MACRO_BREATH_SPEED_INC: if (record->event.pressed) { - breathing_period_inc(); + #ifdef BACKLIGHT_BREATHING + breathing_period_inc(); + #endif } break; case MACRO_BREATH_SPEED_DEC: if (record->event.pressed) { - breathing_period_dec(); + #ifdef BACKLIGHT_BREATHING + breathing_period_dec(); + #endif } break; case MACRO_BREATH_DEFAULT: if (record->event.pressed) { - breathing_period_default(); + #ifdef BACKLIGHT_BREATHING + breathing_period_default(); + #endif } break; } |