aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_steno.c
diff options
context:
space:
mode:
authorGravatar Jeremy Bernhardt <bernhardtjeremy@gmail.com>2020-01-17 15:15:58 -0600
committerGravatar ridingqwerty <george.g.koenig@gmail.com>2020-01-17 16:15:58 -0500
commitd11238f748554d66718b8fc13caa6e3da93fdf16 (patch)
tree8f7f2fad7774ae69f835cff2443781b97196866e /quantum/process_keycode/process_steno.c
parent95c24bbaf8ed2b3c9ee79226dea782dc84764c56 (diff)
downloadqmk_firmware-d11238f748554d66718b8fc13caa6e3da93fdf16.tar.gz
switching to you know whats up mode (#7921)
Diffstat (limited to 'quantum/process_keycode/process_steno.c')
-rw-r--r--quantum/process_keycode/process_steno.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_steno.c b/quantum/process_keycode/process_steno.c
index e0b33ec86..57e279f21 100644
--- a/quantum/process_keycode/process_steno.c
+++ b/quantum/process_keycode/process_steno.c
@@ -73,7 +73,9 @@ static void steno_clear_state(void) {
static void send_steno_state(uint8_t size, bool send_empty) {
for (uint8_t i = 0; i < size; ++i) {
if (chord[i] || send_empty) {
+#ifdef VIRTSER_ENABLE
virtser_send(chord[i]);
+#endif
}
}
}
@@ -105,7 +107,9 @@ static void send_steno_chord(void) {
switch (mode) {
case STENO_MODE_BOLT:
send_steno_state(BOLT_STATE_SIZE, false);
+#ifdef VIRTSER_ENABLE
virtser_send(0); // terminating byte
+#endif
break;
case STENO_MODE_GEMINI:
chord[0] |= 0x80; // Indicate start of packet