This commit is contained in:
Eric Tang 2016-04-22 13:44:50 -07:00 committed by Jack Humbert
parent a718c53fe7
commit eb09c450de

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