diff options
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r-- | quantum/process_keycode/process_leader.c | 4 | ||||
-rw-r--r-- | quantum/process_keycode/process_steno.c | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/quantum/process_keycode/process_leader.c b/quantum/process_keycode/process_leader.c index 473906d65..e0fe47654 100644 --- a/quantum/process_keycode/process_leader.c +++ b/quantum/process_keycode/process_leader.c @@ -14,6 +14,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef DISABLE_LEADER + #include "process_leader.h" __attribute__ ((weak)) @@ -52,3 +54,5 @@ bool process_leader(uint16_t keycode, keyrecord_t *record) { } return true; } + +#endif diff --git a/quantum/process_keycode/process_steno.c b/quantum/process_keycode/process_steno.c index 71e5e8ff1..16bbf154f 100644 --- a/quantum/process_keycode/process_steno.c +++ b/quantum/process_keycode/process_steno.c @@ -15,6 +15,7 @@ */ #include "process_steno.h" #include "quantum_keycodes.h" +#include "eeprom.h" #include "keymap_steno.h" #include "virtser.h" @@ -54,8 +55,9 @@ #define BOLT_STATE_SIZE 4 #define GEMINI_STATE_SIZE 6 +#define MAX_STATE_SIZE GEMINI_STATE_SIZE -uint8_t state[MAX(BOLT_STATE_SIZE, GEMINI_STATE_SIZE)] = {0}; +uint8_t state[MAX_STATE_SIZE] = {0}; uint8_t pressed = 0; steno_mode_t mode; @@ -68,11 +70,8 @@ uint8_t boltmap[64] = { TXB_NUM, TXB_NUM, TXB_NUM, TXB_NUM, TXB_NUM, TXB_NUM, TXB_Z_R }; -#define BOLTMAP_MASK (sizeof(boltmap) - 1) - - void steno_clear_state(void) { - memset(state, 0, sizeof(state)); + __builtin_memset(state, 0, sizeof(state)); } void steno_init() { |