diff --git a/keyboards/zsa/voyager/voyager.c b/keyboards/zsa/voyager/voyager.c index d1ced480d7f3..9fa14b31c2b5 100644 --- a/keyboards/zsa/voyager/voyager.c +++ b/keyboards/zsa/voyager/voyager.c @@ -11,7 +11,7 @@ bool is_launching = false; #if defined(DEFERRED_EXEC_ENABLE) # if defined(DYNAMIC_MACRO_ENABLE) -deferred_token dynamic_macro_token = INVALID_DEFERRED_TOKEN; +deferred_token dynamic_macro_token = INVALID_DEFERRED_TOKEN; static uint32_t dynamic_macro_led(uint32_t trigger_time, void *cb_arg) { static bool led_state = true; if (!is_launching) { @@ -97,20 +97,19 @@ layer_state_t layer_state_set_kb(layer_state_t state) { #if !defined(VOYAGER_USER_LEDS) state = layer_state_set_user(state); if (is_launching || !keyboard_config.led_level) return state; -#ifdef ORYX_ENABLE +# ifdef ORYX_ENABLE if (rawhid_state.status_led_control) return state; -#endif +# 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);