summaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix
diff options
context:
space:
mode:
authorJames Thomson <thomsj@users.noreply.github.com>2022-10-11 19:33:02 +0100
committerGitHub <noreply@github.com>2022-10-11 11:33:02 -0700
commit41159326ca7c366b50edad1392369131c4ce4008 (patch)
tree883ef6282eb5ae533f23704f73b348a4b1a201ed /quantum/rgb_matrix
parent6af7d9fa736990d9c808e148592dc9efcec332ab (diff)
Fix boundary in `RGB_MATRIX_INDICATOR_SET_COLOR` (#18650)
Diffstat (limited to 'quantum/rgb_matrix')
-rw-r--r--quantum/rgb_matrix/rgb_matrix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix.h b/quantum/rgb_matrix/rgb_matrix.h
index 1cd054abc4..e1bdad42e0 100644
--- a/quantum/rgb_matrix/rgb_matrix.h
+++ b/quantum/rgb_matrix/rgb_matrix.h
@@ -81,7 +81,7 @@
#endif
#define RGB_MATRIX_INDICATOR_SET_COLOR(i, r, g, b) \
- if (i >= led_min && i <= led_max) { \
+ if (i >= led_min && i < led_max) { \
rgb_matrix_set_color(i, r, g, b); \
}