Skip to content

Commit

Permalink
liblights: check if LIGHT_ID_CAPS is defined
Browse files Browse the repository at this point in the history
Change-Id: Ia60d6c1066fb7ae05725f05d1df2968b141db7e8
  • Loading branch information
stargo committed Oct 12, 2015
1 parent 35c3ece commit 01801aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions liblight/lights.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@ static int open_lights(const struct hw_module_t* module, char const* name,
else if (0 == strcmp(LIGHT_ID_KEYBOARD, name)) {
set_light = set_light_keyboard;
}
#ifdef LIGHT_ID_CAPS
else if (0 == strcmp(LIGHT_ID_CAPS, name)) {
set_light = set_light_caps;
}
#endif
else if (0 == strcmp(LIGHT_ID_BUTTONS, name)) {
set_light = set_light_buttons;
}
Expand Down

0 comments on commit 01801aa

Please sign in to comment.