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/cbbrowne | |
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/cbbrowne')
-rw-r--r-- | keyboards/planck/keymaps/cbbrowne/config.h | 3 | ||||
-rw-r--r-- | keyboards/planck/keymaps/cbbrowne/keymap.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/planck/keymaps/cbbrowne/config.h b/keyboards/planck/keymaps/cbbrowne/config.h index d92790635..0bb508385 100644 --- a/keyboards/planck/keymaps/cbbrowne/config.h +++ b/keyboards/planck/keymaps/cbbrowne/config.h @@ -27,7 +27,10 @@ #include "../../config.h" #define LEADER_TIMEOUT 300 + +#ifndef LIGHT_CONFIG_H #define BACKLIGHT_BREATHING +#endif /* cbbrowne user configuration */ diff --git a/keyboards/planck/keymaps/cbbrowne/keymap.c b/keyboards/planck/keymaps/cbbrowne/keymap.c index 9bae6fb50..eb8d422f2 100644 --- a/keyboards/planck/keymaps/cbbrowne/keymap.c +++ b/keyboards/planck/keymaps/cbbrowne/keymap.c @@ -219,7 +219,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) if (record->event.pressed) { layer_on(_RAISE); -#ifdef BACKLIGHT_ENABLE +#ifdef BACKLIGHT_BREATHING breathing_period_set(2); breathing_pulse(); #endif @@ -235,7 +235,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) if (record->event.pressed) { layer_on(_LOWER); -#ifdef BACKLIGHT_ENABLE +#ifdef BACKLIGHT_BREATHING breathing_period_set(2); breathing_pulse(); #endif |