diff options
| author | Colin T.A. Gray <colinta@gmail.com> | 2017-12-05 14:13:27 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-07 11:07:45 -0500 |
| commit | b7c76fda31019a19aaa17e5229023de4fdad19ae (patch) | |
| tree | ada0785d618ba8ec3b03f18156a2bc47cddd908c /quantum/quantum.c | |
| parent | d5a76e899d1d4f91dc7d348075a08e42047fc8d1 (diff) | |
| download | qmk_firmware-b7c76fda31019a19aaa17e5229023de4fdad19ae.tar.gz qmk_firmware-b7c76fda31019a19aaa17e5229023de4fdad19ae.zip | |
fixes case where BACKLIGHT_BREATHING is enabled, but pin doesn't support PWM
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 6 |
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) { | |||
| 935 | 935 | ||
| 936 | #ifdef BACKLIGHT_BREATHING | 936 | #ifdef BACKLIGHT_BREATHING |
| 937 | 937 | ||
| 938 | #ifdef NO_BACKLIGHT_CLOCK | ||
| 939 | void breathing_defaults(void) {} | ||
| 940 | void breathing_intensity_default(void) {} | ||
| 941 | #else | ||
| 942 | |||
| 938 | #define BREATHING_NO_HALT 0 | 943 | #define BREATHING_NO_HALT 0 |
| 939 | #define BREATHING_HALT_OFF 1 | 944 | #define BREATHING_HALT_OFF 1 |
| 940 | #define BREATHING_HALT_ON 2 | 945 | #define BREATHING_HALT_ON 2 |
| @@ -1134,6 +1139,7 @@ ISR(TIMER1_COMPA_vect) | |||
| 1134 | 1139 | ||
| 1135 | } | 1140 | } |
| 1136 | 1141 | ||
| 1142 | #endif // NO_BACKLIGHT_CLOCK | ||
| 1137 | #endif // breathing | 1143 | #endif // breathing |
| 1138 | 1144 | ||
| 1139 | #else // backlight | 1145 | #else // backlight |
