From 9853633ae3abe61cde9fb15bce3415ab7114fa25 Mon Sep 17 00:00:00 2001 From: Greg Millam Date: Sat, 26 Oct 2024 16:43:16 -0700 Subject: [PATCH] Only do macro refresh for dev builds --- keyboards/svalboard/keymaps/vial/keymap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboards/svalboard/keymaps/vial/keymap.c b/keyboards/svalboard/keymaps/vial/keymap.c index 80b5dbe4e00..887d9f39dad 100644 --- a/keyboards/svalboard/keymaps/vial/keymap.c +++ b/keyboards/svalboard/keymaps/vial/keymap.c @@ -181,6 +181,7 @@ void keyboard_post_init_user(void) { //debug_mouse=true; rgblight_layers = sval_rgb_layers; +#if __has_include("keymap_all.h") // Check if we've already got our macros set. At this point we're just // seeing if ANY macro is defined. if (sval_macro_size > 0) { @@ -194,4 +195,5 @@ void keyboard_post_init_user(void) { dynamic_keymap_macro_set_buffer(0, sval_macro_size, sval_macros); } } +#endif }