summaryrefslogtreecommitdiffstats
path: root/quantum/rgblight.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-07-07 17:33:32 +0200
committerJack Humbert <jack.humb@gmail.com>2016-07-07 17:33:34 +0200
commit57e08eb8badc5db2fb44d2df684f32ea48cce411 (patch)
tree51eede58af359c5c98a080ae359b545a23dd5ad8 /quantum/rgblight.h
parentad43d450ca1b988d196da80e2a745f45f24068f6 (diff)
downloadqmk_firmware-57e08eb8badc5db2fb44d2df684f32ea48cce411.tar.gz
qmk_firmware-57e08eb8badc5db2fb44d2df684f32ea48cce411.tar.xz
updates rgblight implementation, makes non-timer stuff compatible with audio
Diffstat (limited to 'quantum/rgblight.h')
-rw-r--r--quantum/rgblight.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index 64f92523e..def26c428 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -1,8 +1,11 @@
#ifndef RGBLIGHT_H
#define RGBLIGHT_H
-#ifndef RGBLIGHT_MODES
-#define RGBLIGHT_MODES 23
+
+#if !defined(AUDIO_ENABLE) && defined(RGBLIGHT_TIMER)
+ #define RGBLIGHT_MODES 23
+#else
+ #define RGBLIGHT_MODES 1
#endif
#ifndef RGBLIGHT_EFFECT_SNAKE_LENGTH