Update レイヤーインジケータ関連変数を、#ifdefブロック内へ移動。

This commit is contained in:
Takeshi Nishio 2020-11-25 06:14:01 +09:00
parent 81425ee684
commit 4b13ea7f16

View File

@ -188,9 +188,6 @@ static uint16_t raise_pressed_time = 0;
// static bool alt_ime_pressed = false; // static bool alt_ime_pressed = false;
// static uint16_t alt_ime_pressed_time = 0; // static uint16_t alt_ime_pressed_time = 0;
// デフォルトレイヤー格納用
static uint16_t current_default_layer = 0;
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) { switch (keycode) {
@ -333,6 +330,9 @@ switch (keycode) {
#define JONES_LED_INDICATOR_CHANGE_COUNT 1 #define JONES_LED_INDICATOR_CHANGE_COUNT 1
#define JONES_LED_DIMMER_LEVEL 200 #define JONES_LED_DIMMER_LEVEL 200
// デフォルトレイヤー格納用
static uint16_t current_default_layer = 0;
// 1st LED // 1st LED
const rgblight_segment_t PROGMEM my_mac_layer[] = RGBLIGHT_LAYER_SEGMENTS( const rgblight_segment_t PROGMEM my_mac_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{JONES_LED_INDICATOR_INDEX , JONES_LED_INDICATOR_COUNT, HSV_WHITE - JONES_LED_DIMMER_LEVEL} {JONES_LED_INDICATOR_INDEX , JONES_LED_INDICATOR_COUNT, HSV_WHITE - JONES_LED_DIMMER_LEVEL}