1
0
Fork 0
This commit is contained in:
Eric Tang 2016-04-22 13:44:50 -07:00 committed by Jack Humbert
parent a718c53fe7
commit eb09c450de
1 changed files with 3 additions and 3 deletions

View File

@ -231,8 +231,8 @@ extern const uint16_t fn_actions[];
// For tri-layer
void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3);
#define IS_LAYER_ON(layer) ((layer_state) & (1UL<<(layer)))
#define IS_LAYER_OFF(layer) ((!layer_state) & (1UL<<(layer)))
#define IS_LAYER_ON(layer) (layer_state & (1UL << (layer)))
#define IS_LAYER_OFF(layer) (~layer_state & (1UL << (layer)))
#endif