-
-
Notifications
You must be signed in to change notification settings - Fork 37.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
23775 rgblight.h compile time bug #23777
base: master
Are you sure you want to change the base?
Conversation
Patching the bug where defining a specific number of addressable RGB LEDs causes RGBLIGHT_LED_COUNT to be redefined.
Your keymap uses outdated macros ( The line of code you've added is in a block with the comment |
I understand it's deprecated (I actually missed that in the documentation and code... Gotta love hyper-focus on the fix not what's around it) but I figure it's still a bug worthy of being fixed. That said,
|
Thank you for your contribution! |
#if defined(RGBLED_NUM) | ||
# undef RGBLIGHT_LED_COUNT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anything, this should be:
#if defined(RGBLED_NUM) | |
# undef RGBLIGHT_LED_COUNT | |
#if defined(RGBLED_NUM) && !defined(RGBLIGHT_LED_COUNT) |
Description
Patching the bug where defining a specific number of addressable RGB LEDs causes RGBLIGHT_LED_COUNT to be redefined.
When specifying the number of RGB LEDs in the keymap's
config.h
(as below), there's a compile error redefiningRGBLIGHT_LED_COUNT
. This fixes that compile time error.I'm not sure how to add a test other than compiling this.
This is the relevant sections of my keymap's
config.h
(my specific keymap is not included.)Types of Changes
Issues Fixed or Closed by This PR
Checklist