h/fix: voyager compilation crash if oryx is disabled

This commit is contained in:
Florian
2024-07-26 14:23:06 +07:00
parent bcc5eefe43
commit 2120dc5e4f

View File

@@ -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);