From: Colin T.A. Gray Date: Tue, 5 Dec 2017 21:13:27 +0000 (-0700) Subject: fixes case where BACKLIGHT_BREATHING is enabled, but pin doesn't support PWM X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b7c76fda31019a19aaa17e5229023de4fdad19ae;p=qmk_firmware.git fixes case where BACKLIGHT_BREATHING is enabled, but pin doesn't support PWM --- 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