aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_steno.c
diff options
context:
space:
mode:
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) {
73static void send_steno_state(uint8_t size, bool send_empty) { 73static void send_steno_state(uint8_t size, bool send_empty) {
74 for (uint8_t i = 0; i < size; ++i) { 74 for (uint8_t i = 0; i < size; ++i) {
75 if (chord[i] || send_empty) { 75 if (chord[i] || send_empty) {
76#ifdef VIRTSER_ENABLE
76 virtser_send(chord[i]); 77 virtser_send(chord[i]);
78#endif
77 } 79 }
78 } 80 }
79} 81}
@@ -105,7 +107,9 @@ static void send_steno_chord(void) {
105 switch (mode) { 107 switch (mode) {
106 case STENO_MODE_BOLT: 108 case STENO_MODE_BOLT:
107 send_steno_state(BOLT_STATE_SIZE, false); 109 send_steno_state(BOLT_STATE_SIZE, false);
110#ifdef VIRTSER_ENABLE
108 virtser_send(0); // terminating byte 111 virtser_send(0); // terminating byte
112#endif
109 break; 113 break;
110 case STENO_MODE_GEMINI: 114 case STENO_MODE_GEMINI:
111 chord[0] |= 0x80; // Indicate start of packet 115 chord[0] |= 0x80; // Indicate start of packet