diff options
author | Ryan <[email protected]> | 2023-12-12 15:30:08 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-12 15:30:08 +1100 |
commit | e64815511303584787b623c12ac8bab7dccb0034 (patch) | |
tree | d1096902ce4b467efb6e6e2886c8830ff27f3664 /keyboards/ergodox_ez | |
parent | 3c7e9a6827660885a5c0b7ba1135d3f23a3b4cea (diff) | |
download | qmk_firmware-e64815511303584787b623c12ac8bab7dccb0034.tar.gz qmk_firmware-e64815511303584787b623c12ac8bab7dccb0034.zip |
Rename `RGBLED_NUM` -> `RGBLIGHT_LED_COUNT` (#22570)
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r-- | keyboards/ergodox_ez/led_i2c.c | 2 | ||||
-rw-r--r-- | keyboards/ergodox_ez/post_config.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/ergodox_ez/led_i2c.c b/keyboards/ergodox_ez/led_i2c.c index b82a12d67b..a8802858ec 100644 --- a/keyboards/ergodox_ez/led_i2c.c +++ b/keyboards/ergodox_ez/led_i2c.c @@ -31,7 +31,7 @@ void setleds_custom(rgb_led_t *led, uint16_t led_num) { // prevent right-half code from trying to bitbang all 30 // so with 30 LEDs, we count from 29 to 15 here, and the // other half does 0 to 14. - uint8_t half_led_num = RGBLED_NUM / 2; + uint8_t half_led_num = RGBLIGHT_LED_COUNT / 2; for (i = half_led_num + half_led_num - 1; i >= half_led_num; --i) # elif defined(ERGODOX_LED_15_MIRROR) for (i = 0; i < led_num; ++i) diff --git a/keyboards/ergodox_ez/post_config.h b/keyboards/ergodox_ez/post_config.h index 0d4fe5c683..eb22439ae4 100644 --- a/keyboards/ergodox_ez/post_config.h +++ b/keyboards/ergodox_ez/post_config.h @@ -33,8 +33,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #ifdef ERGODOX_LED_30 // If using 30 LEDs, then define that many -# define RGBLED_NUM 30 // Number of LEDs +# define RGBLIGHT_LED_COUNT 30 // Number of LEDs #else // If not, then only define 15 -# define RGBLED_NUM 15 // Number of LEDs +# define RGBLIGHT_LED_COUNT 15 // Number of LEDs #endif |