Made the layer that is used for calculations a define so that it can be changed per keyboard

This commit is contained in:
Ajax 2018-04-30 01:49:43 -04:00
parent 37d53113e6
commit 40fdf4066a
2 changed files with 3 additions and 1 deletions

View File

@ -293,7 +293,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
send_keyboard_report(); send_keyboard_report();
} }
if(biton32(layer_state) == 2) if(biton32(layer_state) == CALC_LAYER)
{ {
char characterPressed = '\0'; char characterPressed = '\0';

View File

@ -8,6 +8,8 @@
#define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)) #define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
#define CALC_LAYER 2
#define BUFFER_SIZE 32 #define BUFFER_SIZE 32
/*----- /*-----