fixes case where BACKLIGHT_BREATHING is enabled, but pin doesn't support PWM
This commit is contained in:
parent
d5a76e899d
commit
b7c76fda31
1 changed files with 6 additions and 0 deletions
|
@ -935,6 +935,11 @@ void backlight_task(void) {
|
||||||
|
|
||||||
#ifdef BACKLIGHT_BREATHING
|
#ifdef BACKLIGHT_BREATHING
|
||||||
|
|
||||||
|
#ifdef NO_BACKLIGHT_CLOCK
|
||||||
|
void breathing_defaults(void) {}
|
||||||
|
void breathing_intensity_default(void) {}
|
||||||
|
#else
|
||||||
|
|
||||||
#define BREATHING_NO_HALT 0
|
#define BREATHING_NO_HALT 0
|
||||||
#define BREATHING_HALT_OFF 1
|
#define BREATHING_HALT_OFF 1
|
||||||
#define BREATHING_HALT_ON 2
|
#define BREATHING_HALT_ON 2
|
||||||
|
@ -1134,6 +1139,7 @@ ISR(TIMER1_COMPA_vect)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // NO_BACKLIGHT_CLOCK
|
||||||
#endif // breathing
|
#endif // breathing
|
||||||
|
|
||||||
#else // backlight
|
#else // backlight
|
||||||
|
|
Loading…
Reference in a new issue