diff options
author | Drashna Jaelre <drashna@live.com> | 2021-08-14 22:39:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 15:39:08 +1000 |
commit | 488aaa0980b113240a461d6d7878c62f5663f5c6 (patch) | |
tree | e660854792b5a2b5ae357b0bb6a5115c2daea99a /quantum/split_common/transport.h | |
parent | 4b3691e72da69290f63e859bb6ecb55dc561ece5 (diff) | |
download | qmk_firmware-488aaa0980b113240a461d6d7878c62f5663f5c6.tar.gz qmk_firmware-488aaa0980b113240a461d6d7878c62f5663f5c6.zip |
Enable sync of OLED/ST7565 display on/off state on Splits (#13542)
* Enable sync of OLED/ST7565 display on/off state on Splits
* Only send if states are not matched
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/split_common/transport.h')
-rw-r--r-- | quantum/split_common/transport.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index 2e07f6b25c..1d4f6ed0cd 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h @@ -165,6 +165,14 @@ typedef struct _split_shared_memory_t { uint8_t current_wpm; #endif // defined(WPM_ENABLE) && defined(SPLIT_WPM_ENABLE) +#if defined(OLED_ENABLE) && defined(SPLIT_OLED_ENABLE) + uint8_t current_oled_state; +#endif // defined(OLED_ENABLE) && defined(SPLIT_OLED_ENABLE) + +#if defined(ST7565_ENABLE) && defined(SPLIT_ST7565_ENABLE) + uint8_t current_st7565_state; +#endif // ST7565_ENABLE(OLED_ENABLE) && defined(SPLIT_ST7565_ENABLE) + #if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER) rpc_sync_info_t rpc_info; uint8_t rpc_m2s_buffer[RPC_M2S_BUFFER_SIZE]; @@ -172,4 +180,4 @@ typedef struct _split_shared_memory_t { #endif // defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER) } split_shared_memory_t; -extern split_shared_memory_t *const split_shmem;
\ No newline at end of file +extern split_shared_memory_t *const split_shmem; |