1
0

Add backward compatibility to backlight action

This commit is contained in:
Kai Ryu 2014-07-18 16:05:23 +09:00
parent 2054605530
commit 15c6e176c9

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();