]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
fixes case where BACKLIGHT_BREATHING is enabled, but pin doesn't support PWM
authorColin T.A. Gray <colinta@gmail.com>
Tue, 5 Dec 2017 21:13:27 +0000 (14:13 -0700)
committerJack Humbert <jack.humb@gmail.com>
Thu, 7 Dec 2017 16:07:45 +0000 (11:07 -0500)
quantum/quantum.c

index 9c498bf7e04939a70f1e9df04d887ea897eb99da..dee2fc4b634f9db832eabac91f8789448fc982e4 100644 (file)
@@ -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