From 3189449c7f59b346b693e5644da5b847a82463aa Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Fri, 18 Jul 2014 16:05:23 +0900 Subject: [PATCH] Add backward compatibility to backlight action --- common/action.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/action.c b/common/action.c index fddb97c5..4ef5d791 100644 --- a/common/action.c +++ b/common/action.c @@ -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();