1
0

Merge branch 'master' into softpwm

This commit is contained in:
Kai Ryu 2014-07-18 16:08:51 +09:00
commit 48725ce63d

View File

@ -294,6 +294,10 @@ void process_action(keyrecord_t *record)
#ifdef BACKLIGHT_ENABLE #ifdef BACKLIGHT_ENABLE
case ACT_BACKLIGHT: case ACT_BACKLIGHT:
if (!event.pressed) { if (!event.pressed) {
/* Backwards compatibility */
if (action.backlight.level != 0 && action.backlight.opt != BACKLIGHT_LEVEL) {
action.backlight.opt = action.backlight.level;
}
switch (action.backlight.opt) { switch (action.backlight.opt) {
case BACKLIGHT_INCREASE: case BACKLIGHT_INCREASE:
backlight_increase(); backlight_increase();