summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2016-02-07 11:48:28 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2016-02-07 11:48:28 +0100
commit65b41e2e59e274354e57ed36cad097823f111f1a (patch)
tree391468e6679238c35203bb645a9fa492c79092e3
parent240e8c634050558a98216691966dfdfab0a29c49 (diff)
Use boolean AND instead of bitwise (possible typo)
Fortunately seems harmless.
-rw-r--r--quantum/keymap_common.c2
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;