]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
restore default mode/color if no 0 color
authorJack Humbert <jack.humb@gmail.com>
Mon, 6 Nov 2017 14:15:30 +0000 (09:15 -0500)
committerJack Humbert <jack.humb@gmail.com>
Mon, 6 Nov 2017 14:15:30 +0000 (09:15 -0500)
keyboards/ergodox_ez/keymaps/default/config.h
keyboards/ergodox_ez/keymaps/default/keymap.c

index 850848c0111004b2a304095b66227957dec000e0..e2e2c6bdcc6142fdcc20a7c3ab725be94b25e86d 100644 (file)
@@ -20,7 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #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
index ccb4ae3ada37f47985783223e095a55049a7f5e9..e0f6e21b29956c8efe555823bc3e9ee32f155fc8 100644 (file)
@@ -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: