1
0

Add backward compatibility to backlight action

This commit is contained in:
Kai Ryu 2014-07-18 16:05:23 +09:00
parent 819800ec35
commit 3189449c7f

View File

@ -294,6 +294,10 @@ void process_action(keyrecord_t *record)
#ifdef BACKLIGHT_ENABLE
case ACT_BACKLIGHT:
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) {
case BACKLIGHT_INCREASE:
backlight_increase();