mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-08 22:52:28 +00:00
h/fix: voyager compilation crash if oryx is disabled
This commit is contained in:
@@ -101,16 +101,12 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
|
||||
if (rawhid_state.status_led_control) return state;
|
||||
#endif
|
||||
uint8_t layer = get_highest_layer(state);
|
||||
|
||||
if(!rawhid_state.status_led_control) {
|
||||
STATUS_LED_1(layer & (1 << 0));
|
||||
STATUS_LED_2(layer & (1 << 1));
|
||||
STATUS_LED_3(layer & (1 << 2));
|
||||
|
||||
STATUS_LED_1(layer & (1 << 0));
|
||||
STATUS_LED_2(layer & (1 << 1));
|
||||
STATUS_LED_3(layer & (1 << 2));
|
||||
# if !defined(CAPS_LOCK_STATUS)
|
||||
STATUS_LED_4(layer & (1 << 3));
|
||||
STATUS_LED_4(layer & (1 << 3));
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
#ifdef ORYX_ENABLE
|
||||
layer_state_set_oryx(state);
|
||||
|
||||
Reference in New Issue
Block a user