summaryrefslogtreecommitdiffstats
path: root/common/action.c
diff options
context:
space:
mode:
authortmk <tmk@users.noreply.github.com>2014-04-09 10:02:53 +0900
committertmk <tmk@users.noreply.github.com>2014-04-09 10:02:53 +0900
commit894a387d1fd8c823b5339e524e1f9336601ce2ef (patch)
tree3d6f83a71ffe03a2855046de58ba7ae9095f0733 /common/action.c
parent5c63751790bca2d7e0c6f368bd446db8fe671848 (diff)
parent589d99b448e6085513799fbb183f6389d4df408d (diff)
Merge pull request #110 from xauser/master
Enhanced Backlight Support
Diffstat (limited to 'common/action.c')
-rw-r--r--common/action.c5
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;