mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
Fix warning
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4548 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user