diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-08-24 01:37:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-24 01:37:14 -0700 |
| commit | bc239cd52022ea7ca26310faa9ed98e3faa81cb6 (patch) | |
| tree | fea0d67477102aafbbfcff46f4a761747ac169ae /users | |
| parent | 4e1c5887c5c08ebd2cf7868c8d9292aa728e7bf0 (diff) | |
| download | qmk_firmware-bc239cd52022ea7ca26310faa9ed98e3faa81cb6.tar.gz qmk_firmware-bc239cd52022ea7ca26310faa9ed98e3faa81cb6.zip | |
[Keymap] Drashna keymap fixups (#14140)
Diffstat (limited to 'users')
| -rw-r--r-- | users/drashna/drashna.c | 2 | ||||
| -rw-r--r-- | users/drashna/drashna.h | 7 | ||||
| -rw-r--r-- | users/drashna/transport_sync.c | 11 |
3 files changed, 7 insertions, 13 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 13421f39d..3423e379a 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c | |||
| @@ -172,7 +172,6 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
| 172 | return state; | 172 | return state; |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | state = layer_state_set_keymap(state); | ||
| 176 | state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST); | 175 | state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST); |
| 177 | #if defined(RGBLIGHT_ENABLE) | 176 | #if defined(RGBLIGHT_ENABLE) |
| 178 | state = layer_state_set_rgb_light(state); | 177 | state = layer_state_set_rgb_light(state); |
| @@ -188,6 +187,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
| 188 | } | 187 | } |
| 189 | } | 188 | } |
| 190 | #endif | 189 | #endif |
| 190 | state = layer_state_set_keymap(state); | ||
| 191 | return state; | 191 | return state; |
| 192 | } | 192 | } |
| 193 | 193 | ||
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h index a1fa3ffa9..af26fdc43 100644 --- a/users/drashna/drashna.h +++ b/users/drashna/drashna.h | |||
| @@ -76,10 +76,15 @@ enum userspace_layers { | |||
| 76 | #endif | 76 | #endif |
| 77 | 77 | ||
| 78 | #define DEFAULT_LAYER_1_HSV HSV_CYAN | 78 | #define DEFAULT_LAYER_1_HSV HSV_CYAN |
| 79 | #define DEFAULT_LAYER_2_HSV HSV_SPRINGGREEN | 79 | #define DEFAULT_LAYER_2_HSV HSV_CHARTREUSE |
| 80 | #define DEFAULT_LAYER_3_HSV HSV_MAGENTA | 80 | #define DEFAULT_LAYER_3_HSV HSV_MAGENTA |
| 81 | #define DEFAULT_LAYER_4_HSV HSV_GOLDENROD | 81 | #define DEFAULT_LAYER_4_HSV HSV_GOLDENROD |
| 82 | 82 | ||
| 83 | #define DEFAULT_LAYER_1_RGB RGB_CYAN | ||
| 84 | #define DEFAULT_LAYER_2_RGB RGB_CHARTREUSE | ||
| 85 | #define DEFAULT_LAYER_3_RGB RGB_MAGENTA | ||
| 86 | #define DEFAULT_LAYER_4_RGB RGB_GOLDENROD | ||
| 87 | |||
| 83 | bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed); | 88 | bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed); |
| 84 | bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer); | 89 | bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer); |
| 85 | void matrix_init_keymap(void); | 90 | void matrix_init_keymap(void); |
diff --git a/users/drashna/transport_sync.c b/users/drashna/transport_sync.c index 38434751e..fdd596c04 100644 --- a/users/drashna/transport_sync.c +++ b/users/drashna/transport_sync.c | |||
| @@ -71,10 +71,6 @@ void keyboard_post_init_transport_sync(void) { | |||
| 71 | 71 | ||
| 72 | void user_transport_update(void) { | 72 | void user_transport_update(void) { |
| 73 | if (is_keyboard_master()) { | 73 | if (is_keyboard_master()) { |
| 74 | # ifdef OLED_ENABLE | ||
| 75 | user_state.oled_on = is_oled_on(); | ||
| 76 | # endif | ||
| 77 | |||
| 78 | transport_keymap_config = keymap_config.raw; | 74 | transport_keymap_config = keymap_config.raw; |
| 79 | transport_userspace_config = userspace_config.raw; | 75 | transport_userspace_config = userspace_config.raw; |
| 80 | #ifdef AUDIO_ENABLE | 76 | #ifdef AUDIO_ENABLE |
| @@ -89,13 +85,6 @@ void user_transport_update(void) { | |||
| 89 | #endif | 85 | #endif |
| 90 | 86 | ||
| 91 | } else { | 87 | } else { |
| 92 | # ifdef OLED_ENABLE | ||
| 93 | if (user_state.oled_on) { | ||
| 94 | oled_on(); | ||
| 95 | } else { | ||
| 96 | oled_off(); | ||
| 97 | } | ||
| 98 | # endif | ||
| 99 | keymap_config.raw = transport_keymap_config; | 88 | keymap_config.raw = transport_keymap_config; |
| 100 | userspace_config.raw = transport_userspace_config; | 89 | userspace_config.raw = transport_userspace_config; |
| 101 | #ifdef UNICODE_ENABLE | 90 | #ifdef UNICODE_ENABLE |
