diff options
| -rw-r--r-- | keyboards/ergodox/keymaps/erez_experimental/Makefile | 4 | ||||
| -rw-r--r-- | keyboards/ergodox/keymaps/erez_experimental/keymap.c | 8 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/keyboards/ergodox/keymaps/erez_experimental/Makefile b/keyboards/ergodox/keymaps/erez_experimental/Makefile index dbe89d141..51a0c74c5 100644 --- a/keyboards/ergodox/keymaps/erez_experimental/Makefile +++ b/keyboards/ergodox/keymaps/erez_experimental/Makefile | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | 3 | ||
| 4 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 4 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 5 | COMMAND_ENABLE = no # Commands for debug and configuration | 5 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 6 | RGBLIGHT_ENABLE = yes | 6 | RGBLIGHT_ENABLE ?= yes |
| 7 | MIDI_ENABLE = yes | 7 | MIDI_ENABLE ?= yes |
| 8 | 8 | ||
| 9 | ifndef QUANTUM_DIR | 9 | ifndef QUANTUM_DIR |
| 10 | include ../../../../Makefile | 10 | include ../../../../Makefile |
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) { | |||
| 164 | // dynamically generate these. | 164 | // dynamically generate these. |
| 165 | case RGB_FF00BB: | 165 | case RGB_FF00BB: |
| 166 | if (record->event.pressed) { | 166 | if (record->event.pressed) { |
| 167 | rgblight_enable(); | 167 | #ifdef RGBLIGHT_ENABLE |
| 168 | rgblight_mode(1); | 168 | rgblight_enable(); |
| 169 | rgblight_setrgb(0xff,0x00,0xbb); | 169 | rgblight_mode(1); |
| 170 | rgblight_setrgb(0xff,0x00,0xbb); | ||
| 171 | #endif | ||
| 170 | } | 172 | } |
| 171 | return false; | 173 | return false; |
| 172 | break; | 174 | break; |
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index eae3e8f29..aa2e781c8 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c | |||
| @@ -1055,7 +1055,7 @@ int main(void) | |||
| 1055 | // MIDI_Task(); | 1055 | // MIDI_Task(); |
| 1056 | #endif | 1056 | #endif |
| 1057 | 1057 | ||
| 1058 | #ifdef RGBLIGHT_ANIMATIONS | 1058 | #if defined(RGBLIGHT_ANIMATIONS) & defined(RGBLIGHT_ENABLE) |
| 1059 | rgblight_task(); | 1059 | rgblight_task(); |
| 1060 | #endif | 1060 | #endif |
| 1061 | 1061 | ||
