Skip to content

Commit

Permalink
fix: Change webhid_leds variable declaration location
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jul 4, 2024
1 parent 83f0013 commit d1ce867
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions keyboards/zsa/common/oryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion keyboards/zsa/common/oryx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d1ce867

Please sign in to comment.