aboutsummaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorJames Thomson2022-10-11 20:33:02 +0200
committerGitHub2022-10-11 20:33:02 +0200
commit41159326ca7c366b50edad1392369131c4ce4008 (patch)
tree883ef6282eb5ae533f23704f73b348a4b1a201ed /quantum
parent6af7d9fa736990d9c808e148592dc9efcec332ab (diff)
Fix boundary in `RGB_MATRIX_INDICATOR_SET_COLOR` (#18650)
Diffstat (limited to 'quantum')
-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); \
}