diff --git a/keyboards/zsa/common/oryx.c b/keyboards/zsa/common/oryx.c index bf695aeac8d1..8d3e2d8ad2d9 100644 --- a/keyboards/zsa/common/oryx.c +++ b/keyboards/zsa/common/oryx.c @@ -24,6 +24,10 @@ void send_report(uint8_t endpoint, void *report, size_t size); bool send_report(usb_endpoint_in_lut_t endpoint, void *report, size_t size); #endif +#ifdef RGB_MATRIX_ENABLE +RGB webhid_leds[RGB_MATRIX_LED_COUNT]; +#endif + void raw_hid_send_oryx(uint8_t *data, uint8_t length) { if (length != RAW_EPSIZE) { return; diff --git a/keyboards/zsa/common/oryx.h b/keyboards/zsa/common/oryx.h index 86a4b5829e52..30db8d798d1c 100644 --- a/keyboards/zsa/common/oryx.h +++ b/keyboards/zsa/common/oryx.h @@ -91,5 +91,5 @@ void layer_state_set_oryx(layer_state_t state); #if defined(RGB_MATRIX_ENABLE) && !defined(KEYBOARD_ergodox_ez_glow) -RGB webhid_leds[RGB_MATRIX_LED_COUNT]; +extern RGB webhid_leds[RGB_MATRIX_LED_COUNT]; #endif