aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/rgb_matrix_drivers.c
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-05-01 07:48:33 -0500
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-05-01 05:48:33 -0700
commit50bc2dbe77e533959c4b8f821a31b489d25c7cb7 (patch)
treebed3ff6220f09b717ec5c61a154ed50ad5298f9f /quantum/rgb_matrix_drivers.c
parent61ce41ae13242adb113f61ec03dd9ed26acee26b (diff)
downloadfirmware-50bc2dbe77e533959c4b8f821a31b489d25c7cb7.tar.gz
firmware-50bc2dbe77e533959c4b8f821a31b489d25c7cb7.tar.bz2
firmware-50bc2dbe77e533959c4b8f821a31b489d25c7cb7.zip
Fixing incorrect usage of RGBLED_NUM in ws2812 driver when used with RGB Matrix (#5744)
Diffstat (limited to 'quantum/rgb_matrix_drivers.c')
-rw-r--r--quantum/rgb_matrix_drivers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgb_matrix_drivers.c b/quantum/rgb_matrix_drivers.c
index 3814dd61f..1d64dc909 100644
--- a/quantum/rgb_matrix_drivers.c
+++ b/quantum/rgb_matrix_drivers.c
@@ -99,12 +99,12 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
#elif defined(WS2812)
-extern LED_TYPE led[RGBLED_NUM];
+extern LED_TYPE led[DRIVER_LED_TOTAL];
static void flush( void )
{
// Assumes use of RGB_DI_PIN
- ws2812_setleds(led, RGBLED_NUM);
+ ws2812_setleds(led, DRIVER_LED_TOTAL);
}
static void init( void )