From 1d3a19757c7b91230e4e7c54f7e41755fc4767a5 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Mon, 6 Nov 2017 09:15:30 -0500 Subject: restore default mode/color if no 0 color --- keyboards/ergodox_ez/keymaps/default/config.h | 2 +- keyboards/ergodox_ez/keymaps/default/keymap.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'keyboards') diff --git a/keyboards/ergodox_ez/keymaps/default/config.h b/keyboards/ergodox_ez/keymaps/default/config.h index 850848c011..e2e2c6bdcc 100644 --- a/keyboards/ergodox_ez/keymaps/default/config.h +++ b/keyboards/ergodox_ez/keymaps/default/config.h @@ -20,7 +20,7 @@ along with this program. If not, see . #include "config_common.h" -#define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF +// #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF #define RGBLIGHT_COLOR_LAYER_1 0xFF, 0x00, 0x00 #define RGBLIGHT_COLOR_LAYER_2 0x00, 0xFF, 0x00 #define RGBLIGHT_COLOR_LAYER_3 0xFF, 0xFF, 0x00 diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c index ccb4ae3ada..e0f6e21b29 100644 --- a/keyboards/ergodox_ez/keymaps/default/keymap.c +++ b/keyboards/ergodox_ez/keymaps/default/keymap.c @@ -214,6 +214,8 @@ uint32_t layer_state_set_user(uint32_t state) { case 0: #ifdef RGBLIGHT_COLOR_LAYER_0 rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0); + #else + rgblight_init(); #endif break; case 1: -- cgit v1.2.1