summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-09-21 15:50:01 +1000
committerGitHub <noreply@github.com>2023-09-21 15:50:01 +1000
commitf8cea06be3f364e35b5f33c13cf025f010ab158f (patch)
tree52a0e35ad05c9b100c348713a7a070df6e9acbec /quantum
parent3062c98093dd88c4de644d1940b86aa904802616 (diff)
RGBLight/Backlight: add prefixed driver defines (#22089)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/rgb_matrix/rgb_matrix_drivers.c2
-rw-r--r--quantum/rgblight/rgblight.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c
index 368459db40..58b707bf7f 100644
--- a/quantum/rgb_matrix/rgb_matrix_drivers.c
+++ b/quantum/rgb_matrix/rgb_matrix_drivers.c
@@ -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
diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c
index 70672ceb8f..d6dd432c83 100644
--- a/quantum/rgblight/rgblight.c
+++ b/quantum/rgblight/rgblight.c
@@ -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;