]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Use boolean AND instead of bitwise (possible typo)
authorWojciech Siewierski <wojciech.siewierski@onet.pl>
Sun, 7 Feb 2016 10:48:28 +0000 (11:48 +0100)
committerWojciech Siewierski <wojciech.siewierski@onet.pl>
Sun, 7 Feb 2016 10:48:28 +0000 (11:48 +0100)
Fortunately seems harmless.

quantum/keymap_common.c

index 057c0c60e5b93f2ed63b0d2c10714795c5715d9f..ae109da16aefcf29d0866ebf45dfbb7f5f92e71c 100644 (file)
@@ -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;