summaryrefslogtreecommitdiffstats
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorColin T.A. Gray <colinta@gmail.com>2017-12-05 22:13:27 +0100
committerJack Humbert <jack.humb@gmail.com>2017-12-07 17:07:45 +0100
commitb7c76fda31019a19aaa17e5229023de4fdad19ae (patch)
treeada0785d618ba8ec3b03f18156a2bc47cddd908c /quantum/quantum.c
parentd5a76e899d1d4f91dc7d348075a08e42047fc8d1 (diff)
downloadqmk_firmware-b7c76fda31019a19aaa17e5229023de4fdad19ae.tar.gz
qmk_firmware-b7c76fda31019a19aaa17e5229023de4fdad19ae.tar.xz
fixes case where BACKLIGHT_BREATHING is enabled, but pin doesn't support PWM
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 9c498bf7e..dee2fc4b6 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -935,6 +935,11 @@ void backlight_task(void) {
#ifdef BACKLIGHT_BREATHING
+#ifdef NO_BACKLIGHT_CLOCK
+void breathing_defaults(void) {}
+void breathing_intensity_default(void) {}
+#else
+
#define BREATHING_NO_HALT 0
#define BREATHING_HALT_OFF 1
#define BREATHING_HALT_ON 2
@@ -1134,6 +1139,7 @@ ISR(TIMER1_COMPA_vect)
}
+#endif // NO_BACKLIGHT_CLOCK
#endif // breathing
#else // backlight