From 74a2c9ada58ca4dbea61d5b0c4fa2704a0e70bf2 Mon Sep 17 00:00:00 2001 From: Less/Rikki <86894501+lesshonor@users.noreply.github.com> Date: Mon, 27 Jun 2022 01:33:30 -0400 Subject: [PATCH] OLED_ENABLE fix & dynamic key override exclusion (#188) --- keyboards/mechwild/mercutio/keymaps/vial/config.h | 7 ++++++- keyboards/mechwild/mercutio/keymaps/vial/keymap.c | 7 ++++--- keyboards/mechwild/mercutio/keymaps/vial/rules.mk | 3 ++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/keyboards/mechwild/mercutio/keymaps/vial/config.h b/keyboards/mechwild/mercutio/keymaps/vial/config.h index 7519b41598..eeaa272b88 100644 --- a/keyboards/mechwild/mercutio/keymaps/vial/config.h +++ b/keyboards/mechwild/mercutio/keymaps/vial/config.h @@ -21,4 +21,9 @@ along with this program. If not, see . #define VIAL_KEYBOARD_UID {0xAA, 0xF4, 0xE4, 0x5D, 0xDA, 0x2E, 0x52, 0x2F} #define VIAL_UNLOCK_COMBO_ROWS { 1, 5 } #define VIAL_UNLOCK_COMBO_COLS { 0, 3 } -#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS } \ No newline at end of file +#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS } + +/* Space-saving measures */ +#define LAYER_STATE_8BIT +#undef LOCKING_SUPPORT_ENABLE +#undef LOCKING_RESYNC_ENABLE diff --git a/keyboards/mechwild/mercutio/keymaps/vial/keymap.c b/keyboards/mechwild/mercutio/keymaps/vial/keymap.c index abca493519..e83dbc1293 100644 --- a/keyboards/mechwild/mercutio/keymaps/vial/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/vial/keymap.c @@ -46,7 +46,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ) }; -#ifdef OLED_DRIVER_ENABLE +#ifdef OLED_ENABLE oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; // flips the display 180 degrees if offhand } @@ -61,7 +61,8 @@ static void render_name(void) { oled_write_P(mercutio_name, false); } -void oled_task_user(void) { +bool oled_task_user(void) { render_name(); + return false; } -#endif \ No newline at end of file +#endif diff --git a/keyboards/mechwild/mercutio/keymaps/vial/rules.mk b/keyboards/mechwild/mercutio/keymaps/vial/rules.mk index ec581523e4..1fb4736063 100644 --- a/keyboards/mechwild/mercutio/keymaps/vial/rules.mk +++ b/keyboards/mechwild/mercutio/keymaps/vial/rules.mk @@ -3,4 +3,5 @@ VIAL_ENABLE = yes VIAL_ENCODERS_ENABLE = yes LTO_ENABLE = yes -QMK_SETTINGS = no +KEY_OVERRIDE_ENABLE = no +MAGIC_ENABLE = no