[Keymap] Drashna's Defaults cleanup (#13722)

This commit is contained in:
Drashna Jaelre authored and GitHub committed 2021-07-26 17:59:49 -07:00
1 parent 368efb5d2b
commit eb46c954dc
50 files changed
+986 -1389

No files matched your search

+8 -9
View File
@@ -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;
}