mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	switching to you know whats up mode (#7921)
This commit is contained in:
		
							parent
							
								
									95c24bbaf8
								
							
						
					
					
						commit
						d11238f748
					
				| @ -61,7 +61,7 @@ endif | |||||||
| 
 | 
 | ||||||
| ifeq ($(strip $(STENO_ENABLE)), yes) | ifeq ($(strip $(STENO_ENABLE)), yes) | ||||||
|     OPT_DEFS += -DSTENO_ENABLE |     OPT_DEFS += -DSTENO_ENABLE | ||||||
|     VIRTSER_ENABLE := yes |     VIRTSER_ENABLE ?= yes | ||||||
|     SRC += $(QUANTUM_DIR)/process_keycode/process_steno.c |     SRC += $(QUANTUM_DIR)/process_keycode/process_steno.c | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -73,7 +73,9 @@ static void steno_clear_state(void) { | |||||||
| static void send_steno_state(uint8_t size, bool send_empty) { | static void send_steno_state(uint8_t size, bool send_empty) { | ||||||
|     for (uint8_t i = 0; i < size; ++i) { |     for (uint8_t i = 0; i < size; ++i) { | ||||||
|         if (chord[i] || send_empty) { |         if (chord[i] || send_empty) { | ||||||
|  | #ifdef VIRTSER_ENABLE | ||||||
|             virtser_send(chord[i]); |             virtser_send(chord[i]); | ||||||
|  | #endif | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| @ -105,7 +107,9 @@ static void send_steno_chord(void) { | |||||||
|         switch (mode) { |         switch (mode) { | ||||||
|             case STENO_MODE_BOLT: |             case STENO_MODE_BOLT: | ||||||
|                 send_steno_state(BOLT_STATE_SIZE, false); |                 send_steno_state(BOLT_STATE_SIZE, false); | ||||||
|  | #ifdef VIRTSER_ENABLE | ||||||
|                 virtser_send(0);  // terminating byte
 |                 virtser_send(0);  // terminating byte
 | ||||||
|  | #endif | ||||||
|                 break; |                 break; | ||||||
|             case STENO_MODE_GEMINI: |             case STENO_MODE_GEMINI: | ||||||
|                 chord[0] |= 0x80;  // Indicate start of packet
 |                 chord[0] |= 0x80;  // Indicate start of packet
 | ||||||
|  | |||||||
| @ -18,10 +18,6 @@ | |||||||
| 
 | 
 | ||||||
| #include "quantum.h" | #include "quantum.h" | ||||||
| 
 | 
 | ||||||
| #if defined(STENO_ENABLE) && !defined(VIRTSER_ENABLE) |  | ||||||
| #    error "must have virtser enabled to use steno" |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| typedef enum { STENO_MODE_BOLT, STENO_MODE_GEMINI } steno_mode_t; | typedef enum { STENO_MODE_BOLT, STENO_MODE_GEMINI } steno_mode_t; | ||||||
| 
 | 
 | ||||||
| bool     process_steno(uint16_t keycode, keyrecord_t *record); | bool     process_steno(uint16_t keycode, keyrecord_t *record); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Bernhardt
						Jeremy Bernhardt