Added a build flag for using a custom rgblight driver

This commit is contained in:
Luiz Ribeiro committed 2017-06-11 12:30:48 -04:00
1 parent 964d7060e1
commit d4cd5dda5c
7 files changed
+57 -23

No files matched your search

+2 -1
View File
@@ -364,7 +364,7 @@ void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b) {
rgblight_set();
}
__attribute__ ((weak))
#ifndef RGBLIGHT_CUSTOM_DRIVER
void rgblight_set(void) {
if (rgblight_config.enable) {
#ifdef RGBW
@@ -385,6 +385,7 @@ void rgblight_set(void) {
#endif
}
}
#endif
#ifdef RGBLIGHT_ANIMATIONS