diff options
author | Drashna Jaelre <[email protected]> | 2021-07-26 17:59:49 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-26 17:59:49 -0700 |
commit | eb46c954dcf99d842967cc6095827316ffddd291 (patch) | |
tree | 69f0a5ade629b63731c246888c0e067312e0970f /users/drashna/transport_sync.c | |
parent | 368efb5d2b834d995ba24cd23349327bab02918b (diff) | |
download | qmk_firmware-eb46c954dcf99d842967cc6095827316ffddd291.tar.gz qmk_firmware-eb46c954dcf99d842967cc6095827316ffddd291.zip |
[Keymap] Drashna's Defaults cleanup (#13722)
Diffstat (limited to 'users/drashna/transport_sync.c')
-rw-r--r-- | users/drashna/transport_sync.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/users/drashna/transport_sync.c b/users/drashna/transport_sync.c index baa1f7651a..8a3e6d1bfa 100644 --- a/users/drashna/transport_sync.c +++ b/users/drashna/transport_sync.c @@ -1,10 +1,10 @@ #ifdef SPLIT_TRANSACTION_IDS_USER -#include "transport_sync.h" -#include "transactions.h" -#include <string.h> +# include "transport_sync.h" +# include "transactions.h" +# include <string.h> typedef struct { - bool oled_on; + bool oled_on; uint16_t keymap_config; } user_runtime_config_t; @@ -23,20 +23,19 @@ void keyboard_post_init_transport_sync(void) { void user_state_update(void) { if (is_keyboard_master()) { - -#ifdef OLED_DRIVER_ENABLE +# ifdef OLED_DRIVER_ENABLE user_state.oled_on = is_oled_on(); -#endif +# endif user_state.keymap_config = keymap_config.raw; } else { -#ifdef OLED_DRIVER_ENABLE +# ifdef OLED_DRIVER_ENABLE if (user_state.oled_on) { oled_on(); } else { oled_off(); } -#endif +# endif if (keymap_config.raw != user_state.keymap_config) { keymap_config.raw = user_state.keymap_config; } |