summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorFlorian <fd@0x6664>2023-09-19 18:44:25 +0700
committerFlorian <fd@0x6664>2023-09-19 18:44:25 +0700
commitf84ba467bab2173b18e4095b6d5b9beecc2998f5 (patch)
treee0f43f9c707a2d327f93beb1c52c345f75b9ceb8 /keyboards
parentae410b9587fdb5a5000165486262fd7565de8c4e (diff)
fix: prevents compilation bomb when oryx's hid protocol is disabled
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/voyager/voyager.c7
1 files changed, 6 insertions, 1 deletions
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;