From 23468c1e1707ba3cdf72f2b0c02d8d5229586566 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 20 Jun 2024 11:38:58 +0700 Subject: [PATCH] fix: compilation crash with Shine boards when oryx is active --- quantum/oryx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quantum/oryx.c b/quantum/oryx.c index 696dcd1323eb..fc7e03303968 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -53,17 +53,21 @@ void trigger_smart_layer(void) { } void set_webhid_effect(void) { +#if defined(RGB_MATRIX_ENABLE) rgb_matrix_mode_noeeprom(RGB_MATRIX_CUSTOM_oryx_webhid_effect); rawhid_state.rgb_control = true; +#endif } void clear_webhid_effect(void) { +#if defined(RGB_MATRIX_ENABLE) // Clear the pattern for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) { webhid_leds[i] = (RGB){.r = 0, .g = 0, .b = 0}; } rgb_matrix_reload_from_eeprom(); rawhid_state.rgb_control = false; +#endif } void raw_hid_receive(uint8_t *data, uint8_t length) {