File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,11 @@ void keyboard_pre_init_kb(void) {
120
120
layer_state_t layer_state_set_kb (layer_state_t state ) {
121
121
#if !defined(MOONLANDER_USER_LEDS )
122
122
state = layer_state_set_user (state );
123
- if ( is_launching || ! keyboard_config . led_level ) return state ;
124
- #ifdef ORYX_ENABLE
123
+ # ifdef ORYX_ENABLE
124
+ layer_state_set_oryx ( state );
125
125
if (rawhid_state .status_led_control ) return state ;
126
- #endif
126
+ # endif
127
+ if (is_launching || !keyboard_config .led_level ) return state ;
127
128
bool LED_1 = false;
128
129
bool LED_2 = false;
129
130
bool LED_3 = false;
@@ -172,9 +173,6 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
172
173
#if !defined(CAPS_LOCK_STATUS )
173
174
STATUS_LED_6 (LED_6 );
174
175
#endif
175
- #endif
176
- #ifdef ORYX_ENABLE
177
- layer_state_set_oryx (state );
178
176
#endif
179
177
180
178
return state ;
Original file line number Diff line number Diff line change @@ -96,20 +96,18 @@ void keyboard_pre_init_kb(void) {
96
96
layer_state_t layer_state_set_kb (layer_state_t state ) {
97
97
state = layer_state_set_user (state );
98
98
#if !defined(VOYAGER_USER_LEDS )
99
- if (is_launching || !keyboard_config .led_level ) return state ;
100
99
# ifdef ORYX_ENABLE
100
+ layer_state_set_oryx (state );
101
101
if (rawhid_state .status_led_control ) return state ;
102
102
# endif
103
+ if (is_launching || !keyboard_config .led_level ) return state ;
103
104
uint8_t layer = get_highest_layer (state );
104
105
STATUS_LED_1 (layer & (1 << 0 ));
105
106
STATUS_LED_2 (layer & (1 << 1 ));
106
107
STATUS_LED_3 (layer & (1 << 2 ));
107
108
# if !defined(CAPS_LOCK_STATUS )
108
109
STATUS_LED_4 (layer & (1 << 3 ));
109
110
# endif
110
- #endif
111
- #ifdef ORYX_ENABLE
112
- layer_state_set_oryx (state );
113
111
#endif
114
112
return state ;
115
113
}
You can’t perform that action at this time.
0 commit comments