summaryrefslogtreecommitdiffstats
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-03-31 21:30:31 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-03-31 21:30:31 +0000
commit852888942d7b956397df109fa98438e6c20f74a7 (patch)
tree8ae1c99f8e307daa477fd92571c5c4d915154520 /nuttx
parent2791dba4e77f6f99b9d1910af9050a2b44172fb7 (diff)
Fix warning
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4548 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx')
-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 1677391527..be2de96a1c 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