Merge pull request #131 from Vifon/patch-1

Use boolean AND instead of bitwise (possible typo)
This commit is contained in:
Jack Humbert 2016-02-07 09:30:39 -05:00
commit 8d785de796

View File

@ -64,7 +64,7 @@ action_t action_for_key(uint8_t layer, keypos_t key)
action.code = ACTION_MACRO(keycode & 0xFF); action.code = ACTION_MACRO(keycode & 0xFF);
return action; return action;
#ifdef BACKLIGHT_ENABLE #ifdef BACKLIGHT_ENABLE
} else if (keycode >= BL_0 & keycode <= BL_15) { } else if (keycode >= BL_0 && keycode <= BL_15) {
action_t action; action_t action;
action.code = ACTION_BACKLIGHT_LEVEL(keycode & 0x000F); action.code = ACTION_BACKLIGHT_LEVEL(keycode & 0x000F);
return action; return action;