RGBLight/Backlight: add prefixed driver defines (#22089)
This commit is contained in:
parent
3062c98093
commit
f8cea06be3
4 changed files with 5 additions and 7 deletions
|
@ -440,7 +440,7 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
|
|||
};
|
||||
|
||||
#elif defined(RGB_MATRIX_WS2812)
|
||||
# if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_CUSTOM_DRIVER)
|
||||
# if defined(RGBLIGHT_WS2812)
|
||||
# pragma message "Cannot use RGBLIGHT and RGB Matrix using WS2812 at the same time."
|
||||
# pragma message "You need to use a custom driver, or re-implement the WS2812 driver to use a different configuration."
|
||||
# endif
|
||||
|
|
|
@ -901,7 +901,7 @@ __attribute__((weak)) void rgblight_call_driver(rgb_led_t *start_led, uint8_t nu
|
|||
ws2812_setleds(start_led, num_leds);
|
||||
}
|
||||
|
||||
#ifndef RGBLIGHT_CUSTOM_DRIVER
|
||||
#ifndef RGBLIGHT_CUSTOM
|
||||
|
||||
void rgblight_set(void) {
|
||||
rgb_led_t *start_led;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue