From f84ba467bab2173b18e4095b6d5b9beecc2998f5 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 19 Sep 2023 18:44:25 +0700 Subject: fix: prevents compilation bomb when oryx's hid protocol is disabled --- keyboards/voyager/voyager.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/keyboards/voyager/voyager.c b/keyboards/voyager/voyager.c index 9cf80230cc..5a09746675 100644 --- a/keyboards/voyager/voyager.c +++ b/keyboards/voyager/voyager.c @@ -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); @@ -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; -- cgit v1.2.3