diff options
author | tmk <tmk@users.noreply.github.com> | 2014-04-09 10:02:53 +0900 |
---|---|---|
committer | tmk <tmk@users.noreply.github.com> | 2014-04-09 10:02:53 +0900 |
commit | 894a387d1fd8c823b5339e524e1f9336601ce2ef (patch) | |
tree | 3d6f83a71ffe03a2855046de58ba7ae9095f0733 /common/action.c | |
parent | 5c63751790bca2d7e0c6f368bd446db8fe671848 (diff) | |
parent | 589d99b448e6085513799fbb183f6389d4df408d (diff) |
Merge pull request #110 from xauser/master
Enhanced Backlight Support
Diffstat (limited to 'common/action.c')
-rw-r--r-- | common/action.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/action.c b/common/action.c index e6938f5a23..fddb97c508 100644 --- a/common/action.c +++ b/common/action.c @@ -294,7 +294,7 @@ void process_action(keyrecord_t *record) #ifdef BACKLIGHT_ENABLE case ACT_BACKLIGHT: if (!event.pressed) { - switch (action.backlight.id) { + switch (action.backlight.opt) { case BACKLIGHT_INCREASE: backlight_increase(); break; @@ -307,6 +307,9 @@ void process_action(keyrecord_t *record) case BACKLIGHT_STEP: backlight_step(); break; + case BACKLIGHT_LEVEL: + backlight_level(action.backlight.level); + break; } } break; |