summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 507f252..3b58637 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -83,8 +83,9 @@ void backlight_start_timer(void)
return ;
/* Prevent cpu frequency changes while dimming. */
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
cpu_boost(true);
-
+#endif
count = 1;
bl_timer_active = true;
@@ -155,7 +156,9 @@ void TIMER1(void)
if (idle)
{
- cpu_boost(false);
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ cpu_boost(true);
+#endif
bl_timer_active = false;
TMR1 = 0;
}
@@ -177,7 +180,9 @@ void backlight_allow_timer(bool on)
if (!timer_allowed && bl_timer_active)
{
- cpu_boost(false);
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ cpu_boost(true);
+#endif
bl_dim_current = bl_dim_target;
bl_timer_active = false;
TMR1 = 0;