Skip to content

Commit

Permalink
led min max change #1
Browse files Browse the repository at this point in the history
Co-authored-by: Drashna Jaelre <drashna@live.com>
  • Loading branch information
filterpaper and drashna authored Jul 2, 2021
1 parent dc8b039 commit d4acc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/feature_rgb_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,9 @@ Caps Lock indicator on alphanumeric flagged keys:
```c
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
if (host_keyboard_led_state().caps_lock) {
for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) {
for (uint8_t i = led_min; i <= led_max; i++) {
if (g_led_config.flags[i] & LED_FLAG_KEYLIGHT) {
RGB_MATRIX_INDICATOR_SET_COLOR(i, RGB_RED);
rgb_matrix_set_color(i, RGB_RED);
}
}
}
Expand Down

0 comments on commit d4acc8b

Please sign in to comment.