summaryrefslogtreecommitdiffstats
path: root/keyboards/terrazzo
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/terrazzo')
-rw-r--r--keyboards/terrazzo/terrazzo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index 8e3678035c..cc62225de7 100644
--- a/keyboards/terrazzo/terrazzo.c
+++ b/keyboards/terrazzo/terrazzo.c
@@ -117,7 +117,7 @@ void terrazzo_scroll_pixel(bool clockwise) {
terrazzo_led_index = terrazzo_led_index - 1;
}
- if (terrazzo_led_index >= DRIVER_LED_TOTAL) {
+ if (terrazzo_led_index >= LED_MATRIX_LED_COUNT) {
terrazzo_led_index = 0;
} else if (terrazzo_led_index <= 0 ) {
terrazzo_led_index = LED_MATRIX_LED_COUNT - 1;