Browse Source

restore default mode/color if no 0 color

pull/1974/head
Jack Humbert 6 years ago
parent
commit
1d3a19757c
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      keyboards/ergodox_ez/keymaps/default/config.h
  2. +2
    -0
      keyboards/ergodox_ez/keymaps/default/keymap.c

+ 1
- 1
keyboards/ergodox_ez/keymaps/default/config.h View 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


+ 2
- 0
keyboards/ergodox_ez/keymaps/default/keymap.c View 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:


Loading…
Cancel
Save