Lamp plugin: Allow toggling the button light using "select".

Change-Id: I0f276a74010ef463ebdb0eb0cc00fc50123966f0
This commit is contained in:
Frank Gevaerts 2015-02-22 12:22:40 +01:00
parent b84fd878d3
commit 272b558639
4 changed files with 34 additions and 0 deletions

View file

@ -106,6 +106,12 @@ void buttonlight_force_on(void)
rb->buttonlight_set_timeout(0);
}
/* Force the buttonlight off */
void buttonlight_force_off(void)
{
rb->buttonlight_set_timeout(-1);
}
/* Turn off backlight timeout */
void buttonlight_ignore_timeout(void)
{