diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 21:28:12 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 21:28:12 -0500 |
commit | f25596b8dc2f15f620c07164d871023d9284618c (patch) | |
tree | 5f49445087742533f5aed2567883ad59ddc47182 /keyboards/ergodox/keymaps/erez_experimental/keymap.c | |
parent | cefa8468fb5f28bd67a0c02d371a4aef0964e20c (diff) | |
download | firmware-f25596b8dc2f15f620c07164d871023d9284618c.tar.gz firmware-f25596b8dc2f15f620c07164d871023d9284618c.tar.bz2 firmware-f25596b8dc2f15f620c07164d871023d9284618c.zip |
rgblight fixes
Diffstat (limited to 'keyboards/ergodox/keymaps/erez_experimental/keymap.c')
-rw-r--r-- | keyboards/ergodox/keymaps/erez_experimental/keymap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/keyboards/ergodox/keymaps/erez_experimental/keymap.c b/keyboards/ergodox/keymaps/erez_experimental/keymap.c index 4a23c7ac5..0c0e3c4e3 100644 --- a/keyboards/ergodox/keymaps/erez_experimental/keymap.c +++ b/keyboards/ergodox/keymaps/erez_experimental/keymap.c @@ -164,9 +164,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { // dynamically generate these. case RGB_FF00BB: if (record->event.pressed) { - rgblight_enable(); - rgblight_mode(1); - rgblight_setrgb(0xff,0x00,0xbb); + #ifdef RGBLIGHT_ENABLE + rgblight_enable(); + rgblight_mode(1); + rgblight_setrgb(0xff,0x00,0xbb); + #endif } return false; break; |