summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/stm3210e-eval')
-rw-r--r--nuttx/configs/stm3210e-eval/src/up_lcd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_lcd.c b/nuttx/configs/stm3210e-eval/src/up_lcd.c
index 167739152..be2de96a1 100644
--- a/nuttx/configs/stm3210e-eval/src/up_lcd.c
+++ b/nuttx/configs/stm3210e-eval/src/up_lcd.c
@@ -978,8 +978,6 @@ static int stm3210e_getpower(struct lcd_dev_s *dev)
static int stm3210e_setpower(struct lcd_dev_s *dev, int power)
{
- uint32_t frac;
-
gvdbg("power: %d\n", power);
DEBUGASSERT((unsigned)power <= CONFIG_LCD_MAXPOWER);
@@ -989,6 +987,7 @@ static int stm3210e_setpower(struct lcd_dev_s *dev, int power)
{
#ifdef CONFIG_LCD_BACKLIGHT
#ifdef CONFIG_LCD_PWM
+ uint32_t frac;
uint32_t duty;
/* Caclulate the new backlight duty. It is a faction of the timer1