aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/split
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/split')
-rw-r--r--users/drashna/split/transport_sync.c11
-rw-r--r--users/drashna/split/transport_sync.h2
2 files changed, 6 insertions, 7 deletions
diff --git a/users/drashna/split/transport_sync.c b/users/drashna/split/transport_sync.c
index 2509e448c..4c113ec25 100644
--- a/users/drashna/split/transport_sync.c
+++ b/users/drashna/split/transport_sync.c
@@ -8,7 +8,7 @@
8# include <avr/wdt.h> 8# include <avr/wdt.h>
9#endif 9#endif
10 10
11#ifdef CUSTOM_UNICODE_ENABLE 11#ifdef UNICODE_COMMON_ENABLE
12# include "process_unicode_common.h" 12# include "process_unicode_common.h"
13extern unicode_config_t unicode_config; 13extern unicode_config_t unicode_config;
14#endif 14#endif
@@ -58,7 +58,7 @@ void watchdog_handler(uint8_t in_buflen, const void* in_data, uint8_t out_buflen
58#endif 58#endif
59 59
60#ifdef OLED_ENABLE 60#ifdef OLED_ENABLE
61#include "oled/oled_stuff.h" 61# include "oled/oled_stuff.h"
62void keylogger_string_sync(uint8_t initiator2target_buffer_size, const void* initiator2target_buffer, uint8_t target2initiator_buffer_size, void* target2initiator_buffer) { 62void keylogger_string_sync(uint8_t initiator2target_buffer_size, const void* initiator2target_buffer, uint8_t target2initiator_buffer_size, void* target2initiator_buffer) {
63 if (initiator2target_buffer_size == OLED_KEYLOGGER_LENGTH) { 63 if (initiator2target_buffer_size == OLED_KEYLOGGER_LENGTH) {
64 memcpy(&keylog_str, initiator2target_buffer, initiator2target_buffer_size); 64 memcpy(&keylog_str, initiator2target_buffer, initiator2target_buffer_size);
@@ -95,7 +95,7 @@ void user_transport_update(void) {
95#if defined(POINTING_DEVICE_ENABLE) && defined(KEYBOARD_handwired_tractyl_manuform) 95#if defined(POINTING_DEVICE_ENABLE) && defined(KEYBOARD_handwired_tractyl_manuform)
96 user_state.tap_toggling = tap_toggling; 96 user_state.tap_toggling = tap_toggling;
97#endif 97#endif
98#ifdef UNICODE_ENABLE 98#ifdef UNICODE_COMMON_ENABLE
99 user_state.unicode_mode = unicode_config.input_mode; 99 user_state.unicode_mode = unicode_config.input_mode;
100#endif 100#endif
101#ifdef SWAP_HANDS_ENABLE 101#ifdef SWAP_HANDS_ENABLE
@@ -108,7 +108,7 @@ void user_transport_update(void) {
108 keymap_config.raw = transport_keymap_config; 108 keymap_config.raw = transport_keymap_config;
109 userspace_config.raw = transport_userspace_config; 109 userspace_config.raw = transport_userspace_config;
110 user_state.raw = transport_user_state; 110 user_state.raw = transport_user_state;
111#ifdef UNICODE_ENABLE 111#ifdef UNICODE_COMMON_ENABLE
112 unicode_config.input_mode = user_state.unicode_mode; 112 unicode_config.input_mode = user_state.unicode_mode;
113#endif 113#endif
114#if defined(POINTING_DEVICE_ENABLE) && defined(KEYBOARD_handwired_tractyl_manuform) 114#if defined(POINTING_DEVICE_ENABLE) && defined(KEYBOARD_handwired_tractyl_manuform)
@@ -128,7 +128,7 @@ void user_transport_sync(void) {
128 static uint32_t last_config = 0, last_sync[4], last_user_state = 0; 128 static uint32_t last_config = 0, last_sync[4], last_user_state = 0;
129 bool needs_sync = false; 129 bool needs_sync = false;
130#ifdef OLED_ENABLE 130#ifdef OLED_ENABLE
131 static char keylog_temp[OLED_KEYLOGGER_LENGTH] = { 0 }; 131 static char keylog_temp[OLED_KEYLOGGER_LENGTH] = {0};
132#endif 132#endif
133 133
134 // Check if the state values are different 134 // Check if the state values are different
@@ -228,7 +228,6 @@ void user_transport_sync(void) {
228 } 228 }
229 } 229 }
230#endif 230#endif
231
232} 231}
233 232
234void housekeeping_task_user(void) { 233void housekeeping_task_user(void) {
diff --git a/users/drashna/split/transport_sync.h b/users/drashna/split/transport_sync.h
index 884586dfd..f38fdcf1e 100644
--- a/users/drashna/split/transport_sync.h
+++ b/users/drashna/split/transport_sync.h
@@ -15,7 +15,7 @@ typedef union {
15 bool audio_enable :1; 15 bool audio_enable :1;
16 bool audio_clicky_enable :1; 16 bool audio_clicky_enable :1;
17 bool tap_toggling :1; 17 bool tap_toggling :1;
18 bool unicode_mode :1; 18 uint8_t unicode_mode :3;
19 bool swap_hands :1; 19 bool swap_hands :1;
20 bool host_driver_disabled :1; 20 bool host_driver_disabled :1;
21 }; 21 };