Skip to content

Commit

Permalink
voyager: fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jul 14, 2024
1 parent bcc5eef commit 734291f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions keyboards/zsa/voyager/voyager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 734291f

Please sign in to comment.