update to driver separation

This commit is contained in:
Jack Humbert 2017-09-15 21:43:58 -04:00
commit dc7d0c7b74
13 changed files with 259 additions and 30 deletions

View file

@ -373,7 +373,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
@ -394,6 +394,7 @@ void rgblight_set(void) {
#endif
}
}
#endif
#ifdef RGBLIGHT_ANIMATIONS