Skip to content

Commit

Permalink
fix: compilation crash with Shine boards when oryx is active
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Jun 20, 2024
1 parent b1142d8 commit 23468c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/oryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 23468c1

Please sign in to comment.