diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-02-07 09:30:39 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-02-07 09:30:39 -0500 |
commit | 8d785de796539ff54fa6c16d34c348d1c647b1f3 (patch) | |
tree | 391468e6679238c35203bb645a9fa492c79092e3 /quantum | |
parent | 240e8c634050558a98216691966dfdfab0a29c49 (diff) | |
parent | 65b41e2e59e274354e57ed36cad097823f111f1a (diff) |
Merge pull request #131 from Vifon/patch-1
Use boolean AND instead of bitwise (possible typo)
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/keymap_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index 057c0c60e5..ae109da16a 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -64,7 +64,7 @@ action_t action_for_key(uint8_t layer, keypos_t key) action.code = ACTION_MACRO(keycode & 0xFF); return action; #ifdef BACKLIGHT_ENABLE - } else if (keycode >= BL_0 & keycode <= BL_15) { + } else if (keycode >= BL_0 && keycode <= BL_15) { action_t action; action.code = ACTION_BACKLIGHT_LEVEL(keycode & 0x000F); return action; |