Skip to content

Commit

Permalink
fix: prevents compilation bomb when oryx's hid protocol is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Sep 19, 2023
1 parent ae410b9 commit f84ba46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion keyboards/voyager/voyager.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ void dynamic_macro_record_end_user(int8_t direction) {
#endif

void voyager_led_task(void) {
#ifdef ORYX_ENABLE
if (rawhid_state.rgb_control) return;
#endif
if (is_launching) {
STATUS_LED_1(false);
STATUS_LED_2(false);
Expand Down Expand Up @@ -109,7 +111,10 @@ void keyboard_pre_init_kb(void) {
#if !defined(VOYAGER_USER_LEDS)
layer_state_t layer_state_set_kb(layer_state_t state) {
state = layer_state_set_user(state);
if (is_launching || !keyboard_config.led_level || rawhid_state.rgb_control) return state;
if (is_launching || !keyboard_config.led_level) return state;
#ifdef ORYX_ENABLE
if (rawhid_state.rgb_control) return;
#endif
bool LED_1 = false;
bool LED_2 = false;
bool LED_3 = false;
Expand Down

0 comments on commit f84ba46

Please sign in to comment.