aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/transport_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/transport_sync.c')
-rw-r--r--users/drashna/transport_sync.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/drashna/transport_sync.c b/users/drashna/transport_sync.c
index fdd596c04..38434751e 100644
--- a/users/drashna/transport_sync.c
+++ b/users/drashna/transport_sync.c
@@ -71,6 +71,10 @@ void keyboard_post_init_transport_sync(void) {
71 71
72void user_transport_update(void) { 72void user_transport_update(void) {
73 if (is_keyboard_master()) { 73 if (is_keyboard_master()) {
74# ifdef OLED_ENABLE
75 user_state.oled_on = is_oled_on();
76# endif
77
74 transport_keymap_config = keymap_config.raw; 78 transport_keymap_config = keymap_config.raw;
75 transport_userspace_config = userspace_config.raw; 79 transport_userspace_config = userspace_config.raw;
76#ifdef AUDIO_ENABLE 80#ifdef AUDIO_ENABLE
@@ -85,6 +89,13 @@ void user_transport_update(void) {
85#endif 89#endif
86 90
87 } else { 91 } else {
92# ifdef OLED_ENABLE
93 if (user_state.oled_on) {
94 oled_on();
95 } else {
96 oled_off();
97 }
98# endif
88 keymap_config.raw = transport_keymap_config; 99 keymap_config.raw = transport_keymap_config;
89 userspace_config.raw = transport_userspace_config; 100 userspace_config.raw = transport_userspace_config;
90#ifdef UNICODE_ENABLE 101#ifdef UNICODE_ENABLE