Skip to content

Commit

Permalink
Allow steno to build when NKRO is not defined.
Browse files Browse the repository at this point in the history
Was missing eeprom.h, MAX(), and memset.
  • Loading branch information
Talljoe authored and jackhumbert committed Aug 20, 2017
1 parent 937b86d commit fc70c9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions quantum/process_keycode/process_steno.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
#include "process_steno.h"
#include "quantum_keycodes.h"
#include "eeprom.h"
#include "keymap_steno.h"
#include "virtser.h"

Expand Down Expand Up @@ -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;

Expand All @@ -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() {
Expand Down

0 comments on commit fc70c9a

Please sign in to comment.