Fix red/yellow round #2

Change-Id: Ife25eac11fc6f6cedeca8f3fa59536bce0efe2cd
This commit is contained in:
Marcin Bukat 2015-01-12 13:25:14 +01:00
parent 3d983866a1
commit 200ca66963
3 changed files with 4 additions and 4 deletions

View file

@ -390,9 +390,9 @@ void main(void)
if ( hold != last_hold ) if ( hold != last_hold )
{ {
if ( hold ) if ( hold )
_backlight_hw_off(); backlight_hw_off();
else else
_backlight_hw_on(); backlight_hw_on();
last_hold = hold; last_hold = hold;
} }

View file

@ -32,7 +32,7 @@ void backlight_hw_brightness(int brightness);
#ifdef HAVE_BUTTON_LIGHT #ifdef HAVE_BUTTON_LIGHT
void buttonlight_hw_on(void); void buttonlight_hw_on(void);
void buttonlight_hw_off(void); void buttonlight_hw_off(void);
void buttonlight_hw_set_brightness(int brightness); void buttonlight_hw_brightness(int brightness);
#endif #endif
#endif /* BACKLIGHT_TARGET.H */ #endif /* BACKLIGHT_TARGET.H */

View file

@ -35,7 +35,7 @@ void backlight_hw_brightness(int val);
void buttonlight_hw_on(void); void buttonlight_hw_on(void);
void buttonlight_hw_off(void); void buttonlight_hw_off(void);
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
void buttonlight_hw_set_brightness(int val); void buttonlight_hw_brightness(int val);
#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */ #endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
#endif /* HAVE_BUTTON_LIGHT */ #endif /* HAVE_BUTTON_LIGHT */